Not able to install "socket.io" on my BBB -> npm ERR! Error: connect ETIMEDOUT

357 views
Skip to first unread message

Ara Bedrossian

unread,
Sep 16, 2013, 6:49:40 PM9/16/13
to beagl...@googlegroups.com
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 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! or email it to:
npm ERR!     <np...@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!

Roland Groeneveld

unread,
Sep 17, 2013, 2:19:24 PM9/17/13
to beagl...@googlegroups.com
Make sure to install socket.io in the /var/lib/cloud9 directory:

cd /var/lib/cloud9
npm install socket.io

For more details and an example on using socket.io, see https://github.com/lgxlogic/BoneScript-SocketIO

Hope this helps.

Roland Groeneveld
Logic Supply
Reply all
Reply to author
Forward
0 new messages