isaacs/npm — Issue #2020: installation error
Author: oakmac
Created: 2012-01-11 05:32:18+00:00
State: open

oakmac@oakmac-desktop:~$ curl http://npmjs.org/install.sh | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
101 7881 101 7881 0 0 20682 0 --:--:-- --:--:-- --:--:-- 67939
tar=/bin/tar
version:
tar (GNU tar) 1.22
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later .
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
install npm@1.1
fetching: http://registry.npmjs.org/npm/-/npm-1.1.0-beta-10.tgz
0.6.2
1.1.0-beta-10
cleanup prefix=/usr
find: `/usr/lib/node': No such file or directory
find: `/usr/lib/node': No such file or directory

All clean!
npm ERR! Could not create /usr/lib/node_modules/___npm.npm
npm ERR! error installing npm@1.1.0-beta-10
npm ERR! Error: EACCES, permission denied '/usr/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.32-33-generic
npm ERR! command "/usr/bin/node" "/tmp/npm.13150/package/cli.js" "install" "-gf"
npm ERR! cwd /tmp/npm.13150/package
npm ERR! node -v v0.6.2
npm ERR! npm -v 1.1.0-beta-10
npm ERR! path /usr/lib/node_modules
npm ERR! code EACCES
npm ERR! message EACCES, permission denied '/usr/lib/node_modules'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /tmp/npm.13150/package/npm-debug.log
npm not ok
It failed