isaacs/npm — Issue #2153: Install fails due to permissioned denied error
Author: bethrobson
Created: 2012-02-13 20:23:47+00:00
State: open

At first it failed because it couldn't create /usr/local/lib/node_modules, so I made that directory, and tried again, but it's still failing. Note, I'm running this with sudo.

Node.js/LearnBoost-socket.io-8c1c7a2] Beth% sudo 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 10884 0 --:--:-- --:--:-- --:--:-- 54351
tar=/usr/bin/tar
version:
bsdtar 2.6.2 - libarchive 2.6.2
install npm@1.0
fetching: http://registry.npmjs.org/npm/-/npm-1.0.106.tgz
0.5.0-pre
1.0.106
cleanup prefix=/usr/local

All clean!
npm ERR! Could not create /usr/local/lib/node_modules/___npm.npm
npm ERR! error installing npm@1.0.106 Error: EACCES, Permission denied '/usr/local/lib/node_modules/___npm.npm'
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/jL/jLOFzpzvH3qqZ9o5tF7fok+++TI/-Tmp-/npm.1481/package/cli.js" "install" "-gf"
npm ERR! cwd /private/var/folders/jL/jLOFzpzvH3qqZ9o5tF7fok+++TI/-Tmp-/npm.1481/package
npm ERR! node -v v0.5.0-pre
npm ERR! npm -v 1.0.106
npm ERR! path /usr/local/lib/node_modules/___npm.npm
npm ERR! code EACCES
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /private/var/folders/jL/jLOFzpzvH3qqZ9o5tF7fok+++TI/-Tmp-/npm.1481/package/npm-debug.log
npm not ok
It failed