I need to create an interactive webpage to be able to control the BBB and be able to render the measured values from BBB onto this page.
I’m trying to run the example provided at: http://isolasoftware.it/2012/04/23/beaglebone-and-websockets-a-full-example-that-turn-onoff-a-led/
When I’m running the code I getting: Error: Cannot find module ‘socket’
So I tried to install the “socket.io” package. As a result I’m getting the following error:
root@beaglebone:~# npm install socket.io
npm http GET http://registry.npmjs.org/socket.io
npm http GET http://registry.npmjs.org/socket.io
npm http GET http://registry.npmjs.org/socket.io
npm ERR! Error: connect ETIMEDOUT
npm ERR! at errnoException (net.js:770:11)
npm ERR! at Object.afterConnect [as oncomplete] (net.js:761:19)
npm ERR! If you need help, you may report this log at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR! npm-@googlegroups.com
npm ERR! System Linux 3.8.13
npm ERR! command “/usr/bin/node” “/usr/bin/npm” “install” “socket.io”
npm ERR! cwd /home/root
npm ERR! node -v v0.8.22
npm ERR! npm -v 1.2.14
npm ERR! syscall connect
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/root/npm-debug.log
npm ERR! not ok code 0
Please advice!