isaacs/npm — Issue #1888: Error installing node-jshint with 1.1.0-beta-4 (works with alpha-6)
Author: itay
Created: 2011-12-16 00:34:24+00:00
State: open

When I got node 0.6.6 and npm 1.1.0-beta-4, I can't install node-jshint anymore.

If I do:

> npm install jshint

I get the following:

Octavian:~/work/temp itay$ npm install jshint
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 GET https://registry.npmjs.org/argsparser/-/argsparser-0.0.6.tgz
npm http 200 https://registry.npmjs.org/minimatch
npm http GET 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 200 https://registry.npmjs.org/minimatch/-/minimatch-0.0.5.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 WARN prefer global jshint@0.5.5 should be installed with -g
npm ERR! error installing jshint@0.5.5
npm ERR! Error: ENOENT, no such file or directory '/Users/itay/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 10.8.0
npm ERR! command "node" "/Users/itay/.nvm/v0.6.6/bin/npm" "install" "jshint"
npm ERR! cwd /Users/itay/Work/temp
npm ERR! node -v v0.6.6
npm ERR! npm -v 1.1.0-beta-4
npm ERR! path /Users/itay/node_modules/jshint/bin/hint
npm ERR! code ENOENT
npm ERR! message ENOENT, no such file or directory '/Users/itay/node_modules/jshint/bin/hint'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/itay/Work/temp/npm-debug.log
npm not ok

If I first install it using 1.1.0-alpha-6 (so that it is in the cache), then the above does work. But if I nuke the cache, it doesn't work again.

Any ideas what is happening?