isaacs/npm — Issue #1926: Error when trying to install jshint (npm newbie)
Author: meryn
Created: 2011-12-22 21:48:45+00:00
State: open

Not sure this the right forum for these kind of errors, but npm instructs me to "report this entire log".

```
npm http GET https://registry.npmjs.org/jshint
npm http 200 https://registry.npmjs.org/jshint
npm http GET https://registry.npmjs.org/jshint/-/jshint-0.5.5.tgz
npm http 200 https://registry.npmjs.org/jshint/-/jshint-0.5.5.tgz
npm http GET https://registry.npmjs.org/argsparser
npm http GET https://registry.npmjs.org/minimatch
npm http 200 https://registry.npmjs.org/argsparser
npm http 200 https://registry.npmjs.org/minimatch
npm http GET https://registry.npmjs.org/argsparser/-/argsparser-0.0.6.tgz
npm http GET https://registry.npmjs.org/minimatch/-/minimatch-0.0.5.tgz
npm http 200 https://registry.npmjs.org/minimatch/-/minimatch-0.0.5.tgz
npm http 200 https://registry.npmjs.org/argsparser/-/argsparser-0.0.6.tgz
npm http GET https://registry.npmjs.org/lru-cache
npm http 200 https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/lru-cache/-/lru-cache-1.0.5.tgz
npm http 200 https://registry.npmjs.org/lru-cache/-/lru-cache-1.0.5.tgz
npm ERR! error installing jshint@0.5.5
npm ERR! Error: ENOENT, no such file or directory '/Users/meryn/.npmroot/lib/node_modules/jshint/bin/hint'
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" "install" "-g" "jshint"
npm ERR! cwd /Users/meryn
npm ERR! node -v v0.6.6
npm ERR! npm -v 1.1.0-beta-4
npm ERR! path /Users/meryn/.npmroot/lib/node_modules/jshint/bin/hint
npm ERR! code ENOENT
npm ERR! message ENOENT, no such file or directory '/Users/meryn/.npmroot/lib/node_modules/jshint/bin/hint'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/meryn/npm-debug.log
npm not ok
```

I have set my npm "prefix" to /Users/meryn/.npmroot so I don't have to use sudo for global installs.
Trying to install locally gives the same error, just with a different path.

Any help would be much appreciated.