isaacs/npm — Issue #2044: Error when installing jslint 
Author: siddhion
Created: 2012-01-15 22:22:18+00:00
State: open

I couldn't install `jslint` with out using `sudo` so I went and tried to do so with `sudo` but it failed. This is what I got

```bash
$ sudo npm install -g jslint
npm http GET https://registry.npmjs.org/jslint
npm http 304 https://registry.npmjs.org/jslint
npm http GET https://registry.npmjs.org/nopt
npm http 200 https://registry.npmjs.org/nopt
npm http GET https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz
npm http 200 https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz
npm http GET https://registry.npmjs.org/abbrev
npm http 200 https://registry.npmjs.org/abbrev
npm http GET https://registry.npmjs.org/abbrev/-/abbrev-1.0.3.tgz
npm http 200 https://registry.npmjs.org/abbrev/-/abbrev-1.0.3.tgz
npm ERR! error installing jslint@0.1.4
npm ERR! error rolling back jslint@0.1.4 Error: Refusing to delete: /usr/local/bin/jslint not in /usr/local/lib/node_modules/jslint
npm ERR! error rolling back jslint@0.1.4 at clobberFail (/usr/local/lib/node_modules/npm/node_modules/rimraf/rimraf.js:110:12)
npm ERR! error rolling back jslint@0.1.4 at next (/usr/local/lib/node_modules/npm/node_modules/rimraf/rimraf.js:97:42)
npm ERR! error rolling back jslint@0.1.4 at clobberTest (/usr/local/lib/node_modules/npm/node_modules/rimraf/rimraf.js:92:28)
npm ERR! error rolling back jslint@0.1.4 at Object.oncomplete (/usr/local/lib/node_modules/npm/node_modules/rimraf/rimraf.js:70:29)
npm ERR! Error: Refusing to delete: /usr/local/bin/jslint not in /usr/local/lib/node_modules/jslint
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 clobberTest (/usr/local/lib/node_modules/npm/node_modules/rimraf/rimraf.js:92:28)
npm ERR! at Object.oncomplete (/usr/local/lib/node_modules/npm/node_modules/rimraf/rimraf.js:70:29)
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.32-37-generic
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "jslint"
npm ERR! cwd /home/siddhion
npm ERR! node -v v0.6.6
npm ERR! npm -v 1.1.0-beta-4
npm ERR! path /usr/local/bin/jslint
npm ERR! code EEXIST
npm ERR! message Refusing to delete: /usr/local/bin/jslint not in /usr/local/lib/node_modules/jslint
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/siddhion/npm-debug.log
npm not ok

```bash