isaacs/npm — Issue #1992: Update of npm first break npm. New install does not work
Author: ChrisCinelli
Created: 2012-01-05 04:29:09+00:00
State: open

chris@Chris-Cinellis-MacBook-Pro ~ $ sudo npm -g update
Password:
/usr/local/bin/coffee -> /usr/local/lib/node_modules/coffee-script/bin/coffee
/usr/local/bin/cake -> /usr/local/lib/node_modules/coffee-script/bin/cake
coffee-script@1.2.0 /usr/local/lib/node_modules/coffee-script
/usr/local/bin/uglifyjs -> /usr/local/lib/node_modules/uglify-js/bin/uglifyjs
uglify-js@1.2.3 /usr/local/lib/node_modules/uglify-js
/usr/local/bin/lessc -> /usr/local/lib/node_modules/less/bin/lessc
less@1.1.6 /usr/local/lib/node_modules/less
npm ERR! error installing npm@1.0.106 Error: ENOENT, No such file or directory '/usr/local/lib/node_modules/npm/bin/npm.js'
npm ERR! Error: ENOENT, No such file or directory '/usr/local/lib/node_modules/npm/bin/npm.js'
npm ERR! Report this *entire* log at:
npm ERR!
npm ERR! or email it to:
npm ERR!
npm ERR!
npm ERR! System Darwin 11.2.0
npm ERR! command "node" "/usr/local/bin/npm" "-g" "update"
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/chris/npm-debug.log
npm not ok
chris@Chris-Cinellis-MacBook-Pro ~ $ sudo npm -g update
sudo: npm: command not found
chris@Chris-Cinellis-MacBook-Pro ~ $ sudo npm -g update
sudo: npm: command not found
chris@Chris-Cinellis-MacBook-Pro ~ $ sudo curl http://npmjs.org/install.sh | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 7881 100 7881 0 0 11313 0 --:--:-- --:--:-- --:--:-- 54729
tar=/usr/bin/tar
version:
bsdtar 2.8.3 - libarchive 2.8.3
install npm@1.0
fetching: http://registry.npmjs.org/npm/-/npm-1.0.106.tgz
0.4.9
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 11.2.0
npm ERR! command "/usr/local/bin/node" "/private/var/folders/6c/1mpjh9112w1844v9sdzft2240000gn/T/npm.8919/package/cli.js" "install" "-gf"
npm ERR! cwd /private/var/folders/6c/1mpjh9112w1844v9sdzft2240000gn/T/npm.8919/package
npm ERR! node -v v0.4.9
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/6c/1mpjh9112w1844v9sdzft2240000gn/T/npm.8919/package/npm-debug.log
npm not ok
It failed