install npm socket.io failure node version < 0.10.0 - javascript

Im trying to install socket.io into my beagleboneblack, system says my node -v is v0.8.22 and for installation should be at least higher than 0.10.0.
but I can`t upgrade my node.
For installing socket.io, I enter the following text:
/usr/bin/ntpdate -b -s -u pool.ntp.org
cd /var/lib/cloud9
npm install socket.io
cp bonescript-socketio/* /var/lib/cloud9
Error message:
http GET https://registry.npmjs.org/socket.io-parser/2.3.1
WARN engine object-assign#4.1.0: wanted {"node":">=0.10.0"} (current: {"node":"v0.8.22","npm":"1.2.14"})
ERR! fetch failed https://registry.npmjs.org/ms/-ms-0.7.1.tgz
Error message upon completion:
npm ERR! Error: getaddrinfo ENOTFOUND
npm ERR! at errnoException (dns.js:37:11)
npm ERR! at Object.onanswer [as oncomplete] (dns.js:124:16)
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 /var/lib/cloud9
npm ERR! node -v v0.8.22
npm ERR! npm -v 1.2.14
npm ERR! syscall getaddrinfo
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm http GET https://registry.npmjs.org/ms/-/ms-0.7.1.tgz
npm ERR! fetch failed https://registry.npmjs.org/ms/-/ms-0.7.1.tgz
npm http GET https://registry.npmjs.org/ms/-/ms-0.7.1.tgz
npm ERR! fetch failed https://registry.npmjs.org/ms/-/ms-0.7.1.tgz
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /var/lib/cloud9/npm-debug.log
npm ERR! not ok code 0
for node upgrade I've tried
opkg update
but server seems to be down..
Appreciate your attention.

If you type in:
cat /etc/dogtag
you will get a readout. This readout tells you what version of Linux you have on your machine. If you go to http://elinux.org/Beagleboard:BeagleBoneBlack_Debian, the images are updated regularly for the BBB and BBG boards.
Try to update your image and then upgrade to the newer version of socket.io.
Seth
P.S. If this does not work, please let me know.

Related

Cannot get grunt to work

I am having some trouble with grunt. I am using a small software piece writing by us to publish and make an email, however when I run the command to create the emails a grunt error happens and I have tried fixing it but I cannot, it works on the rest of my teams computer but it does not work on mine. Could someone please help?
Running "imagemin:dynamic" (imagemin) task
Fatal error: Cannot read property 'contents' of undefined
Thank you for the help
These are other errors I get:
npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "dev"
npm ERR! node v4.2.4
npm ERR! npm v3.5.3
npm ERR! code ELIFECYCLE
npm ERR! emails#1.0.0 dev: `grunt default`
npm ERR! Exit status 3
npm ERR!
npm ERR! Failed at the emails#1.0.0 dev script 'grunt default'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the emails package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! grunt default
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs emails
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls emails
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/iPatriot/projects/aliada/emails/npm-debug.log

NPM install crashes

My newest npm constantly crashes, when I trying to install some npm package (npm install). I have to repeat this process for example for 5 times before I install all dependencies and even then, It sometimes miss some nested dependencies. So I have to go through the tree and run npm install again.
I tried to use this but with no luck. I'am not behind a proxy. Where should be problem? Installing is taking so long, and my internet connection is not slow.
npm config set registry http://registry.npmjs.org/
c:\work\projects\java\project\frontend-src\node_modules\gulp\node_modules\orchestrator>npm install
npm ERR! fetch failed http://registry.npmjs.org/event-stream/-/event-stream-3.1.7.tgz
npm ERR! fetch failed http://registry.npmjs.org/rcloader/-/rcloader-0.1.2.tgz
npm ERR! fetch failed http://registry.npmjs.org/debug/-/debug-2.1.0.tgz
npm ERR! fetch failed http://registry.npmjs.org/rcloader/-/rcloader-0.1.2.tgz
npm ERR! fetch failed http://registry.npmjs.org/debug/-/debug-2.1.0.tgz
npm ERR! fetch failed http://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz
npm ERR! fetch failed http://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz
npm ERR! fetch failed http://registry.npmjs.org/from/-/from-0.1.3.tgz
npm ERR! fetch failed http://registry.npmjs.org/rcloader/-/rcloader-0.1.2.tgz
npm ERR! network read ECONNRESET
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Apps\\nodejs\\\\node.exe" "C:\\Apps\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd c:\work\projects\java\project\frontend-src\node_modules\gulp\node_modules\orchestrator
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! syscall read
npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! not ok code 0
I don't know how it is possible but these problems disappered after I switched to WIFI on my laptop. I have MSI GT70 which has Killer e2200 Atheros gigabit ethernet. It is likely that cause of this problems is driver/software for manage network traffic (Qualcomm bigfoot) which prefer packets of games. I can't tell for sure because I didn't find any other driver for my configuration.

TypeError: Request path contains unescaped characters

I try to install node.js modules using:
npm install express
but I get this error:
npm http GET https://registry.npmjs.org/express
npm ERR! TypeError: Request path contains unescaped characters.
npm ERR! at Agent.request (_http_agent.js:264:11)
npm ERR! at TunnelingAgent.exports.request (http.js:52:22)
npm ERR! at TunnelingAgent.createSocket (/usr/local/lib/node_modules/npm/node_modules/request/node_modules/tunnel-agent/index.js:117:25)
npm ERR! at TunnelingAgent.createSecureSocket [as createSocket] (/usr/local/lib/node_modules/npm/node_modules/request/node_modules/tunnel-agent/index.js:184:41)
npm ERR! at TunnelingAgent.addRequest (/usr/local/lib/node_modules/npm/node_modules/request/node_modules/tunnel-agent/index.js:80:8)
npm ERR! at new ClientRequest (_http_client.js:112:16)
npm ERR! at Agent.request (_http_agent.js:279:10)
npm ERR! at Object.exports.request (https.js:130:22)
npm ERR! at Request.start (/usr/local/lib/node_modules/npm/node_modules/request/index.js:594:30)
npm ERR! at Request.end (/usr/local/lib/node_modules/npm/node_modules/request/index.js:1186:28)
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.6.11-7.fc16.x86_64
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "express"
npm ERR! cwd /usr/local/src/node
npm ERR! node -v v0.11.5-pre
npm ERR! npm -v 1.3.5
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /usr/local/src/node/npm-debug.log
npm ERR! not ok code 0
May be happening I use a proxy I set it up this way to allow downloads from ips outside my network
export https_proxy='http://172.21.0.12:3128'
I hope you can help me
Set proxy from commandline.
npm config set proxy http://proxydomain:port/
If error occur yet, additional try next.
npm config set registry http://registry.npmjs.org/
These work for me.
(ref http://sushichop.blogspot.jp/2013/01/npm-install.html)
Though late enough, I've bumped into this too after updating nodejs (to 4.1.1) and npm (to something like 1.4.x) on Linux.
I've tried the suggested solution, but changing the registry entry did not help in all cases.
Lastly, having decided to reinstall npm, I found this update source [on npm github][1]
curl -L https://www.npmjs.org/install.sh | sh
which updated my npm to 3.3.8 and all related package installation troubles have been blown away.

npm formidable install - getting errror

trying to install formidable JS library but having some install trouble,
it seems like https://registry.npmjs.org/formidable is down, and using isup.me, the registry site seems to be down completely = can anyone else confirm this as the problem or is it something that I am doing wrong on my side?
THanks! here is the error log from console
^C[~/Documents/Projects/moocs/starup engnineering/nodetutorial]$npm install formidable
npm http GET https://registry.npmjs.org/formidable
npm http GET https://registry.npmjs.org/formidable
npm http GET https://registry.npmjs.org/formidable
npm ERR! Error: connect ECONNREFUSED
npm ERR! at errnoException (net.js:878:11)
npm ERR! at Object.afterConnect [as oncomplete] (net.js:869:19)
npm ERR! { [Error: connect ECONNREFUSED]
npm ERR! code: 'ECONNREFUSED',
npm ERR! errno: 'ECONNREFUSED',
npm ERR! syscall: 'connect' }
npm ERR!
npm ERR! If you are behind a proxy, please make sure that the
npm ERR! 'proxy' config is set properly. See: 'npm help config'
npm ERR! System Darwin 12.4.0
npm ERR! command "/usr/local/Cellar/node/0.10.3/bin/node" "/usr/local/bin/npm" "install" "formidable"
npm ERR! cwd /Users/TheGiantSpider/Documents/Projects/moocs/starup engnineering/nodetutorial
npm ERR! node -v v0.10.3
npm ERR! npm -v 1.2.17
npm ERR! syscall connect
npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! stack Error: connect ECONNREFUSED
npm ERR! stack at errnoException (net.js:878:11)
npm ERR! stack at Object.afterConnect [as oncomplete] (net.js:869:19)
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/TheGiantSpider/Documents/Projects/moocs/starup engnineering/nodetutorial/npm-debug.log
npm ERR! not ok code 0
Try this:
npm config set registry="http://registry.npmjs.org/"
It worked for me.

Needed assistance in installing http-proxy module in node.js

I am trying to install http-proxy on Node, so I can set up a HTTPS proxy, but am running with the following error. Any suggestions as to how I can get http-proxy or any other suggestions how I can set up a HTTPS proxy using node.js. Thanks in advance
npm install http-proxy
npm http GET https://registry.npmjs.org/http-proxy
npm http 304 https://registry.npmjs.org/http-proxy
npm ERR! Error: ENOTDIR, mkdir '/Users/rshroff/tmp/npm-15272/1351528387771-0.3611239262390882'
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 Darwin 11.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "http-proxy"
npm ERR! cwd /Users/rshroff
npm ERR! node -v v0.8.10
npm ERR! npm -v 1.1.65
npm ERR! path /Users/rshroff/tmp/npm-15272/1351528387771-0.3611239262390882
npm ERR! code ENOTDIR
npm ERR! errno 27
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/rshroff/npm-debug.log
npm ERR! not ok code 0
Yaa, so issues here was that my tmp directory did not write permission. Sorry for asking such a silly question.

Categories

Resources