Skip to content

Instantly share code, notes, and snippets.

@pgriess
Created July 7, 2010 21:29
Show Gist options
  • Save pgriess/467317 to your computer and use it in GitHub Desktop.
Save pgriess/467317 to your computer and use it in GitHub Desktop.
% npm ls @installed
npm it worked if it ends with ok
npm sudo false
npm configfile /Users/griessp/.npmrc
npm cli [ 'ls', '@installed' ]
npm version 0.1.19
npm GET /
npm@0.1.19 @active @installed @remote @stable @tag=latest @tag=stable
websocket-client@0.9.3 @active @installed @remote @stable @tag=latest @tag=stable
webworker@0.8.0 @installed @remote @stable @tag=latest @tag=stable
npm ok
% sudo npm uninstall webworker 0.8.0
Password:
npm it worked if it ends with ok
npm sudo true
npm configfile /Users/griessp/.npmrc
npm cli [ 'uninstall', 'webworker', '0.8.0' ]
npm version 0.1.19
npm uninstall about to remove: /opt/local/lib/node/.npm/webworker/0.8.0
npm uninstall checked deps
npm readJson /opt/local/lib/node/.npm/webworker/0.8.0/package/package.json
npm remove bins undefined
npm remaining []
npm ok
% npm ls @installed
npm it worked if it ends with ok
npm sudo false
npm configfile /Users/griessp/.npmrc
npm cli [ 'ls', '@installed' ]
npm version 0.1.19
npm GET /
npm@0.1.19 @active @installed @remote @stable @tag=latest @tag=stable
websocket-client@0.9.3 @active @installed @remote @stable @tag=latest @tag=stable
npm ok
% sudo npm uninstall websocket-client 0.9.3
npm it worked if it ends with ok
npm sudo true
npm configfile /Users/griessp/.npmrc
npm cli [ 'uninstall', 'websocket-client', '0.9.3' ]
npm version 0.1.19
npm uninstall about to remove: /opt/local/lib/node/.npm/websocket-client/0.9.3
npm uninstall removing active version: /opt/local/lib/node/.npm/websocket-client/0.9.3
npm readJson /opt/local/lib/node/.npm/websocket-client/active/package/package.json
npm ! Error: websocket-client-0.9.3 depended upon by
[ 'webworker-0.8.0' ]
remove them first.
at /opt/local/lib/node/.npm/npm/0.1.19/package/lib/uninstall.js:70:52
at node.js:255:9
npm failure try running: 'npm help uninstall'
npm failure Report this *entire* log at <http://github.com/isaacs/npm/issues>
npm failure or email it to <npm-@googlegroups.com>
npm not ok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment