isaacs/npm — Issue #1540: curl http://npmjs.org/install.sh | sh
Author: sothye98
Created: 2011-10-12 13:24:42+00:00
State: open

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!
npm ERR! or email it to:
npm ERR!
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!
npm ERR! or email it to:
npm ERR!
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