isaacs/npm — Issue #2028: npm install error
Author: rafidude
Created: 2012-01-12 20:45:28+00:00
State: open

I installed node 0.6.7 using 'brew install node' command. After that I tried installing npm and it failed. Any help is appreciated.

~% 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 13999 0 --:--:-- --:--:-- --:--:-- 90586
tar=/usr/bin/tar
version:
bsdtar 2.6.2 - libarchive 2.6.2
install npm@1.1
fetching: http://registry.npmjs.org/npm/-/npm-1.1.0-beta-10.tgz
0.6.7
1.1.0-beta-10
cleanup prefix=/usr/local

All clean!
npm ERR! Could not create /usr/local/lib/node_modules/___npm.npm
npm ERR! error installing npm@1.1.0-beta-10
npm ERR! Error: EACCES, permission denied '/usr/local/lib/node_modules/___npm.npm'
npm ERR! Report this *entire* log at:
npm ERR!
npm ERR! or email it to:
npm ERR!
npm ERR!
npm ERR! System Darwin 10.8.0
npm ERR! command "/usr/local/bin/node" "/private/var/folders/em/emTOqZ2iHcuWbR7nQd33U++++TI/-Tmp-/npm.11080/package/cli.js" "install" "-gf"
npm ERR! cwd /private/var/folders/em/emTOqZ2iHcuWbR7nQd33U++++TI/-Tmp-/npm.11080/package
npm ERR! node -v v0.6.7
npm ERR! npm -v 1.1.0-beta-10
npm ERR! path /usr/local/lib/node_modules/___npm.npm
npm ERR! code EACCES
npm ERR! message EACCES, permission denied '/usr/local/lib/node_modules/___npm.npm'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /private/var/folders/em/emTOqZ2iHcuWbR7nQd33U++++TI/-Tmp-/npm.11080/package/npm-debug.log
npm not ok
It failed