isaacs/npm — Issue #1569: npm update -g broke npm
Author: secoif
Created: 2011-10-19 10:16:30+00:00
State: open

Hey I just thought to update my modules and npm ate itself, and told me to log a bug so I am:

```shell
chamb% npm -g outdated
jasmine-node@1.0.12 /usr/local/lib/node_modules/jasmine-node current=1.0.11
jade@0.16.2 /usr/local/lib/node_modules/jade current=0.15.4
npm@1.0.99 /usr/local/lib/node_modules/npm current=1.0.26
uglify-js@1.1.1 /usr/local/lib/node_modules/stitchup/node_modules/uglify-js current=1.0.7
async@0.1.12 /usr/local/lib/node_modules/stitchup/node_modules/stitch/node_modules/async current=0.1.10
underscore@1.2.0 /usr/local/lib/node_modules/stitchup/node_modules/stitch/node_modules/underscore current=1.1.7
express@2.4.7 /usr/local/lib/node_modules/gapserver/node_modules/express current=2.4.6
jade@0.16.2 /usr/local/lib/node_modules/gapserver/node_modules/jade current=0.15.4
resistance@1.2.0 /usr/local/lib/node_modules/gapserver/node_modules/resistance current=1.1.0
stylus@0.17.0 /usr/local/lib/node_modules/gapserver/node_modules/stylus current=0.15.4
uglify-js@1.1.1 /usr/local/lib/node_modules/gapserver/node_modules/smoosh/node_modules/uglify-js current=1.0.7
colors@0.5.1 /usr/local/lib/node_modules/gapserver/node_modules/smoosh/node_modules/colors current=0.5.0
rimraf@1.0.8 /usr/local/lib/node_modules/gapserver/node_modules/smoosh/node_modules/rimraf current=1.0.6
jshint@0.5.1 /usr/local/lib/node_modules/gapserver/node_modules/smoosh/node_modules/jshint current=0.3.1
colors@0.5.1 /usr/local/lib/node_modules/gapserver/node_modules/smoosh/node_modules/asciimo/node_modules/colors current=0.5.0
chamb% npm -g update
async@0.1.12 /usr/local/lib/node_modules/stitchup/node_modules/stitch/node_modules/async
underscore@1.2.0 /usr/local/lib/node_modules/stitchup/node_modules/stitch/node_modules/underscore
colors@0.5.1 /usr/local/lib/node_modules/gapserver/node_modules/smoosh/node_modules/colors
colors@0.5.1 /usr/local/lib/node_modules/gapserver/node_modules/smoosh/node_modules/asciimo/node_modules/colors
uglify-js@1.1.1 /usr/local/lib/node_modules/gapserver/node_modules/smoosh/node_modules/uglify-js
uglify-js@1.1.1 /usr/local/lib/node_modules/stitchup/node_modules/uglify-js
resistance@1.2.0 /usr/local/lib/node_modules/gapserver/node_modules/resistance
npm ERR! error installing npm@1.0.99 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! cwd ...
npm ERR! node -v v0.4.12
npm ERR! npm -v 1.0.26
rimraf@1.0.8 /usr/local/lib/node_modules/gapserver/node_modules/smoosh/node_modules/rimraf
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! .../npm-debug.log
npm not ok
chamb% npm
zsh: command not found: npm
chamb%
```
Do you want the additional logging details or any other info?