Skip to content

Instantly share code, notes, and snippets.

@thirdknife
Created September 20, 2011 21:54
Show Gist options
  • Save thirdknife/1230530 to your computer and use it in GitHub Desktop.
Save thirdknife/1230530 to your computer and use it in GitHub Desktop.
npm installation failed
/node$ sudo curl http://npmjs.org/install.sh | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 5100 100 5100 0 0 4100 0 0:00:01 0:00:01 --:--:-- 8793
fetching: http://registry.npmjs.org/npm/-/npm-1.0.30.tgz
0.4.12
1.0.30
cleanup prefix=/usr/local
All clean!
! [ -d .git ] || git submodule update --init --recursive
node cli.js rm npm -g -f
node cli.js cache clean
node cli.js install -g -f
npm ERR! Could not create /usr/local/lib/node_modules/___npm.npm
npm ERR! error installing npm@1.0.30 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-11-generic
npm ERR! command "node" "/tmp/npm.6445/package/cli.js" "install" "-g" "-f"
npm ERR! cwd /tmp/npm.6445/package
npm ERR! node -v v0.4.12
npm ERR! npm -v 1.0.30
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /tmp/npm.6445/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.30 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-11-generic
npm ERR! command "/usr/local/bin/node" "/tmp/npm.6445/package/cli.js" "install" "-gf"
npm ERR! cwd /tmp/npm.6445/package
npm ERR! node -v v0.4.12
npm ERR! npm -v 1.0.30
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /tmp/npm.6445/package/npm-debug.log
npm not ok
It failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment