-
Notifications
You must be signed in to change notification settings - Fork 3k
-
Notifications
You must be signed in to change notification settings - Fork 3k
curl http://npmjs.org/install.sh | sh #1540
Comments
Try this:
You will definitely get something |
Thanks Isaacs. But when I run I get an error:
gzip: stdin: unexpected end of file
Error: ECONNREFUSED, Connection refused What do you think? installion of NPM is not good or some other problems? Thanks again. |
Let's start at the beginning. The install.sh file appears to not be getting the url for the npm tarball. Someone had this problem yesterday and we fixed it. What does this command output: (curl -SsL -k https://registry.npmjs.org/npm/latest; echo "") | sed -e 's/^.*tarball":"//' | sed -e 's/".*$//' |
result is : http://registry.npmjs.org/npm/-/npm-1.0.96.tgz |
I downloaded using wget http://registry.npmjs.org/npm/-/npm-1.0.96.tgz. But I couldnt install pakcge using npm. $npm install socket.io npm ERR! Error: ECONNREFUSED, Connection refused |
Ok, so the error is that node programs can't reach the outside network, even though wget can. What's in your |
It points to name server. Do I need to add the name server of someone else? version 1.0.99 of NPM is also not install any packages (socket.io) even I manaually install. |
Error I am getting from manual installion of 1;0;99 >>> npm install socket.io |
1 similar comment
Error I am getting from manual installion of 1;0;99 >>> npm install socket.io |
Try running curl http://npmjs.org/install.sh | sudo sh instead of curl http://npmjs.org/install.sh | sh |
Hi!
When I run above command I got the follwong error:
Could not create /usr/local/lib/node_modules/___npm.npm
npm ERR! error installing npm@1.0.94 Error: EACCES, Permission denied '/usr/local/lib/node_modules'
npm ERR! Error: EACCES, Permission denied '/usr/local/lib/node_modules'
npm ERR! Report this entire log at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR! npm-@googlegroups.com
npm ERR!
npm ERR! System Linux 2.6.38-8-generic
npm ERR! command "node" "/tmp/npm.2841/package/cli.js" "install" "-g" "-f"
npm ERR! cwd /tmp/npm.2841/package
npm ERR! node -v v0.4.12
npm ERR! npm -v 1.0.94
npm ERR! path /usr/local/lib/node_modules
npm ERR! code EACCES
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /tmp/npm.2841/package/npm-debug.log
npm not ok
make: *** [install] Error 1
npm ERR! Could not create /usr/local/lib/node_modules/___npm.npm
npm ERR! error installing npm@1.0.94 Error: EACCES, Permission denied '/usr/local/lib/node_modules'
npm ERR! Error: EACCES, Permission denied '/usr/local/lib/node_modules'
npm ERR! Report this entire log at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR! npm-@googlegroups.com
npm ERR!
npm ERR! System Linux 2.6.38-8-generic
npm ERR! command "/usr/local/bin/node" "/tmp/npm.2841/package/cli.js" "install" "-gf"
npm ERR! cwd /tmp/npm.2841/package
npm ERR! node -v v0.4.12
npm ERR! npm -v 1.0.94
npm ERR! path /usr/local/lib/node_modules
npm ERR! code EACCES
But When I run
curl http://npmjs.org/install.sh | sudo sh
I got nothing. Can you where is the mistake?
Thanks
The text was updated successfully, but these errors were encountered: