isaacs/npm — Issue #1952: Error: ENOENT, no such file or directory when installing jshint@0.5.5
Author: cowboy
Created: 2011-12-27 21:05:23+00:00
State: open

On Ubuntu 11.04, I installed node v0.6.6 and npm using nvm. When I try to `npm install -g jshint uglify-js` this is what happens:

```
npm http GET https://registry.npmjs.org/jshint
npm http GET https://registry.npmjs.org/uglify-js
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/uglify-js
npm http GET https://registry.npmjs.org/uglify-js/-/uglify-js-1.2.3.tgz
npm http 200 https://registry.npmjs.org/jshint/-/jshint-0.5.5.tgz
npm http 200 https://registry.npmjs.org/uglify-js/-/uglify-js-1.2.3.tgz
npm http GET https://registry.npmjs.org/argsparser
npm http GET https://registry.npmjs.org/minimatch
/home/cowboy/.dotfiles/libs/nvm/v0.6.6/bin/uglifyjs -> /home/cowboy/.dotfiles/libs/nvm/v0.6.6/lib/node_modules/uglify-js/bin/uglifyjs
npm http 200 https://registry.npmjs.org/minimatch
npm http 200 https://registry.npmjs.org/argsparser
npm http GET https://registry.npmjs.org/minimatch/-/minimatch-0.0.5.tgz
npm http GET https://registry.npmjs.org/argsparser/-/argsparser-0.0.6.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 '/home/cowboy/.dotfiles/libs/nvm/v0.6.6/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 Linux 2.6.38-8-server
npm ERR! command "node" "/home/cowboy/.dotfiles/libs/nvm/v0.6.6/bin/npm" "install" "-g" "jshint" "uglify-js"
npm ERR! cwd /home/cowboy/.dotfiles
npm ERR! node -v v0.6.6
npm ERR! npm -v 1.1.0-beta-4
npm ERR! path /home/cowboy/.dotfiles/libs/nvm/v0.6.6/lib/node_modules/jshint/bin/hint
npm ERR! code ENOENT
npm ERR! message ENOENT, no such file or directory '/home/cowboy/.dotfiles/libs/nvm/v0.6.6/lib/node_modules/jshint/bin/hint'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/cowboy/.dotfiles/npm-debug.log
npm not ok
```