isaacs/npm — Issue #2009: npm install -g kanso
Author: Spredzy
Created: 2012-01-08 12:38:56+00:00
State: open

When executing the command

```
sudo npm install -g kanso
```

I have the following error stack trace

```
npm ERR! error installing kanso@0.1.2
npm ERR! error rolling back kanso@0.1.2 Error: Refusing to delete: /usr/local/bin/kanso not in /usr/local/lib/node_modules/kanso
npm ERR! error rolling back kanso@0.1.2 at clobberFail (/usr/local/lib/node_modules/npm/node_modules/rimraf/rimraf.js:110:12)
npm ERR! error rolling back kanso@0.1.2 at next (/usr/local/lib/node_modules/npm/node_modules/rimraf/rimraf.js:97:42)
npm ERR! error rolling back kanso@0.1.2 at Object.oncomplete (/usr/local/lib/node_modules/npm/node_modules/rimraf/rimraf.js:105:12)
npm ERR! Error: Refusing to delete: /usr/local/bin/kanso not in /usr/local/lib/node_modules/kanso
npm ERR! at clobberFail (/usr/local/lib/node_modules/npm/node_modules/rimraf/rimraf.js:110:12)
npm ERR! at next (/usr/local/lib/node_modules/npm/node_modules/rimraf/rimraf.js:97:42)
npm ERR! at Object.oncomplete (/usr/local/lib/node_modules/npm/node_modules/rimraf/rimraf.js:105:12)
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 "node" "/usr/local/bin/npm" "install" "-g" "kanso"
npm ERR! cwd /Users/yanis/Desktop/kanso
npm ERR! node -v v0.6.6
npm ERR! npm -v 1.1.0-beta-10
npm ERR! path /usr/local/bin/kanso
npm ERR! code EEXIST
npm ERR! message Refusing to delete: /usr/local/bin/kanso not in /usr/local/lib/node_modules/kanso
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/yanis/Desktop/kanso/npm-debug.log
```