isaacs/npm — Issue #1732: npm update npm -g failing
Author: joejoe
Created: 2011-11-18 02:20:26+00:00
State: open

I'm having trouble updating npm. Can anyone help here? Thanks.

Here is what happens if I do an "npm update"

[root@ip-10-243-5-124 ec2-user]# npm update
npm WARN websocket-server@1.4.04 package.json: bugs['web'] should probably be bugs['url']
npm WARN memstore@0.1.1 package.json: bugs['web'] should probably be bugs['url']
npm WARN redis-client@0.3.5 package.json: bugs['web'] should probably be bugs['url']
npm WARN riak-js@0.4.1 package.json: bugs['web'] should probably be bugs['url']
npm ERR! error installing npm@1.0.106 Error: Refusing to delete: /usr/share/man/man3/npm-explore.3 not in /home/ec2-user/node_modules/npm
npm ERR! error installing npm@1.0.106 at clobberFail (/usr/lib/node_modules/npm/node_modules/rimraf/rimraf.js:110:12)
npm ERR! error installing npm@1.0.106 at next (/usr/lib/node_modules/npm/node_modules/rimraf/rimraf.js:97:42)
npm ERR! error installing npm@1.0.106 at /usr/lib/node_modules/npm/node_modules/rimraf/rimraf.js:105:12
npm ERR! error installing npm@1.0.106 at cb (/usr/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:36:9)
npm ERR! error rolling back npm@1.0.106 Error: Refusing to delete: /usr/share/man/man3/npm-explore.3 not in /home/ec2-user/node_modules/npm
npm ERR! error rolling back npm@1.0.106 at clobberFail (/usr/lib/node_modules/npm/node_modules/rimraf/rimraf.js:110:12)
npm ERR! error rolling back npm@1.0.106 at next (/usr/lib/node_modules/npm/node_modules/rimraf/rimraf.js:97:42)
npm ERR! error rolling back npm@1.0.106 at /usr/lib/node_modules/npm/node_modules/rimraf/rimraf.js:105:12
npm ERR! error rolling back npm@1.0.106 at cb (/usr/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:36:9)
npm ERR! Error: Refusing to delete: /usr/share/man/man3/npm-explore.3 not in /home/ec2-user/node_modules/npm
npm ERR! at clobberFail (/usr/lib/node_modules/npm/node_modules/rimraf/rimraf.js:110:12)
npm ERR! at next (/usr/lib/node_modules/npm/node_modules/rimraf/rimraf.js:97:42)
npm ERR! at /usr/lib/node_modules/npm/node_modules/rimraf/rimraf.js:105:12
npm ERR! at cb (/usr/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:36:9)
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.34.7-56.40.amzn1.i686
npm ERR! command "node" "/usr/bin/npm" "update"
npm ERR! cwd /home/ec2-user
npm ERR! node -v v0.4.11
npm ERR! npm -v 1.0.106
npm ERR! path /usr/share/man/man3/npm-explore.3
npm ERR! code EEXIST
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/ec2-user/npm-debug.log