Error when trying to install jshint (npm newbie) #1926

Closed
myrne opened this Issue Dec 22, 2011 · 7 comments

6 participants

@myrne

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!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>
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.

@babibu

Same error for me, but with
node -v v0.6.8
npm -v 1.1.0-2

@trodrigues

+1. Here's my log:

% npm install -g jshint
npm http GET https://registry.npmjs.org/jshint
npm http 304 https://registry.npmjs.org/jshint
npm http GET https://registry.npmjs.org/argsparser
npm http GET https://registry.npmjs.org/minimatch
npm http 304 https://registry.npmjs.org/argsparser
npm http 304 https://registry.npmjs.org/minimatch
npm http GET https://registry.npmjs.org/lru-cache
npm http 304 https://registry.npmjs.org/lru-cache
npm ERR! error installing jshint@0.5.7

npm ERR! Error: ENOENT, no such file or directory '/usr/local/lib/node_modules/jshint/bin/hint'
npm ERR! You may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>
npm ERR! 
npm ERR! System Darwin 11.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "jshint"
npm ERR! cwd /Users/trodrigues/Dropbox/mindlocker
npm ERR! node -v v0.6.8
npm ERR! npm -v 1.1.0-2
npm ERR! path /usr/local/lib/node_modules/jshint/bin/hint
npm ERR! code ENOENT
npm ERR! message ENOENT, no such file or directory '/usr/local/lib/node_modules/jshint/bin/hint'
npm ERR! errno {}
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/trodrigues/Dropbox/mindlocker/npm-debug.log
npm not ok
@hidinginabunker

+1. I'm seeing a crazy long list of dependencies being installed too.

node v0.6.15
npm v1.1.16
jshint v0.6.1
on mac osx 10.7.3

npm install jshint
npm http GET https://registry.npmjs.org/jshint
npm http 304 https://registry.npmjs.org/jshint
npm http GET https://registry.npmjs.org/argsparser
npm http GET https://registry.npmjs.org/minimatch
npm http GET https://registry.npmjs.org/jasmine-node
npm http 304 https://registry.npmjs.org/minimatch
npm http 304 https://registry.npmjs.org/argsparser
npm http 304 https://registry.npmjs.org/jasmine-node
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/tap
npm http 304 https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/coffee-script
npm http GET https://registry.npmjs.org/jasmine-reporters
npm http GET https://registry.npmjs.org/requirejs
npm http GET https://registry.npmjs.org/walkdir
npm http GET https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/tap
npm http 304 https://registry.npmjs.org/jasmine-reporters
npm http 304 https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/walkdir
npm http 304 https://registry.npmjs.org/coffee-script
npm http 304 https://registry.npmjs.org/requirejs
npm http GET https://registry.npmjs.org/jshint
npm http GET https://registry.npmjs.org/tap
npm http 304 https://registry.npmjs.org/tap
npm http 304 https://registry.npmjs.org/jshint
npm http GET https://registry.npmjs.org/tap-runner
npm http 304 https://registry.npmjs.org/tap-runner
npm WARN deprecated tap-runner@0.0.7: this is merged into the 'tap' module now
npm http GET https://registry.npmjs.org/tap-results
npm http GET https://registry.npmjs.org/yamlish
npm http GET https://registry.npmjs.org/slide
npm http GET https://registry.npmjs.org/tap-producer
npm http GET https://registry.npmjs.org/tap-consumer
npm http GET https://registry.npmjs.org/tap-assert
npm http GET https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/uglify-js
npm http GET https://registry.npmjs.org/jison
npm http 304 https://registry.npmjs.org/tap-results
npm http 304 https://registry.npmjs.org/tap-producer
npm http 304 https://registry.npmjs.org/slide
npm WARN deprecated tap-results@0.0.2: this is merged into the 'tap' module now
npm http 304 https://registry.npmjs.org/yamlish
npm http 304 https://registry.npmjs.org/tap-consumer
npm WARN deprecated tap-producer@0.0.1: this is merged into the 'tap' module now
npm http 304 https://registry.npmjs.org/tap-assert
npm http 304 https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/uglify-js
npm http 304 https://registry.npmjs.org/jison
npm WARN deprecated tap-consumer@0.0.1: this is merged into the 'tap' module now
npm WARN deprecated tap-assert@0.0.10: this is merged into the 'tap' module now
npm http GET https://registry.npmjs.org/jasmine-node/1.0.7
npm http 304 https://registry.npmjs.org/jasmine-node/1.0.7
npm http GET https://registry.npmjs.org/slide
npm http GET https://registry.npmjs.org/runforcover
npm http GET https://registry.npmjs.org/nopt
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/difflet
npm http GET https://registry.npmjs.org/deep-equal
npm http 304 https://registry.npmjs.org/nopt
npm http 304 https://registry.npmjs.org/slide
npm http 304 https://registry.npmjs.org/runforcover
npm http 304 https://registry.npmjs.org/deep-equal
npm http 304 https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/difflet
npm http GET https://registry.npmjs.org/tap
npm http GET https://registry.npmjs.org/bunker
npm http GET https://registry.npmjs.org/abbrev
npm http 304 https://registry.npmjs.org/tap
npm http 304 https://registry.npmjs.org/bunker
npm http 304 https://registry.npmjs.org/abbrev
npm http GET https://registry.npmjs.org/charm
npm http GET https://registry.npmjs.org/ent
npm http GET https://registry.npmjs.org/traverse
npm http GET https://registry.npmjs.org/tap
npm http 304 https://registry.npmjs.org/ent
npm http 304 https://registry.npmjs.org/tap
npm http 304 https://registry.npmjs.org/charm
npm http 304 https://registry.npmjs.org/traverse
npm http GET https://registry.npmjs.org/burrito
npm http GET https://registry.npmjs.org/expresso
npm http 304 https://registry.npmjs.org/burrito
npm http 304 https://registry.npmjs.org/expresso
npm http GET https://registry.npmjs.org/expresso
npm http 304 https://registry.npmjs.org/expresso
npm http GET https://registry.npmjs.org/tap-runner
npm http GET https://registry.npmjs.org/nomnom/0.4.3
npm http GET https://registry.npmjs.org/test
npm http GET https://registry.npmjs.org/JSONSelect
npm http GET https://registry.npmjs.org/reflect
npm http 304 https://registry.npmjs.org/tap-runner
npm http 304 https://registry.npmjs.org/nomnom/0.4.3
npm http 304 https://registry.npmjs.org/JSONSelect
npm http 304 https://registry.npmjs.org/test
npm http 304 https://registry.npmjs.org/reflect
npm WARN reflect@0.0.1 package.json: 'modules' object is deprecated
npm http GET https://registry.npmjs.org/yamlish
npm http GET https://registry.npmjs.org/tap-producer
npm http GET https://registry.npmjs.org/tap-consumer
npm http GET https://registry.npmjs.org/tap-assert
npm http GET https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/tap-results
npm http 304 https://registry.npmjs.org/tap-producer
npm http 304 https://registry.npmjs.org/tap-consumer
npm http 304 https://registry.npmjs.org/yamlish
npm http 304 https://registry.npmjs.org/tap-results
npm http 304 https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/tap-assert
npm http GET https://registry.npmjs.org/uglify-js/1.0.7
npm http GET https://registry.npmjs.org/expresso
npm http GET https://registry.npmjs.org/traverse
npm http 304 https://registry.npmjs.org/traverse
npm http 304 https://registry.npmjs.org/uglify-js/1.0.7
npm http GET https://registry.npmjs.org/traverse/-/traverse-0.5.2.tgz
npm http GET https://registry.npmjs.org/uglify-js/-/uglify-js-1.0.7.tgz
npm http 200 https://registry.npmjs.org/traverse/-/traverse-0.5.2.tgz
npm http 200 https://registry.npmjs.org/uglify-js/-/uglify-js-1.0.7.tgz
npm http 304 https://registry.npmjs.org/expresso

npm ERR! Error: ENOENT, utime '/Users/hidinginabunker/Dropbox/code/project/node_modules/jshint/node_modules/jasmine-node/node_modules/walkdir/node_modules/tap/node_modules/runforcover/node_modules/bunker/node_modules/expresso/deps/jscoverage/doc/example-jsunit/jsunit/licenses/JDOM_license.txt'
npm ERR! You may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>
npm ERR! 
npm ERR! System Darwin 11.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "jshint"
npm ERR! cwd /Users/hidinginabunker/Dropbox/code/project
npm ERR! node -v v0.6.15
npm ERR! npm -v 1.1.16
npm ERR! path /Users/hidinginabunker/Dropbox/code/project/node_modules/jshint/node_modules/jasmine-node/node_modules/walkdir/node_modules/tap/node_modules/runforcover/node_modules/bunker/node_modules/expresso/deps/jscoverage/doc/example-jsunit/jsunit/licenses/JDOM_license.txt
npm ERR! fstream_path /Users/hidinginabunker/Dropbox/code/project/node_modules/jshint/node_modules/jasmine-node/node_modules/walkdir/node_modules/tap/node_modules/runforcover/node_modules/bunker/node_modules/expresso/deps/jscoverage/doc/example-jsunit/jsunit/licenses/JDOM_license.txt
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call chown
npm ERR! code ENOENT
npm ERR! message ENOENT, utime '/Users/hidinginabunker/Dropbox/code/project/node_modules/jshint/node_modules/jasmine-node/node_modules/walkdir/node_modules/tap/node_modules/runforcover/node_modules/bunker/node_modules/expresso/deps/jscoverage/doc/example-jsunit/jsunit/licenses/JDOM_license.txt'
npm ERR! errno {}
npm ERR! fstream_stack Object.oncomplete (/usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:305:19)
npm ERR! error rolling back bunker@0.1.1 Error: ENOTEMPTY, rmdir '/Users/hidinginabunker/Dropbox/code/project/node_modules/jshint/node_modules/jasmine-node/node_modules/walkdir/node_modules/tap/node_modules/runforcover/node_modules/bunker/node_modules/expresso/deps/jscoverage/doc/example-jsunit/jsunit'

npm ERR! Error: ENOENT, lstat '/Users/hidinginabunker/Dropbox/code/project/node_modules/jshint/node_modules/jasmine-node/node_modules/walkdir/node_modules/tap/node_modules/runforcover/node_modules/bunker/node_modules/expresso/deps/jscoverage/doc/example-jsunit/jsunit/licenses/lgpl-2.1.txt'
npm ERR! You may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>
npm ERR! 
npm ERR! System Darwin 11.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "jshint"
npm ERR! cwd /Users/hidinginabunker/Dropbox/code/project
npm ERR! node -v v0.6.15
npm ERR! npm -v 1.1.16
npm ERR! path /Users/hidinginabunker/Dropbox/code/project/node_modules/jshint/node_modules/jasmine-node/node_modules/walkdir/node_modules/tap/node_modules/runforcover/node_modules/bunker/node_modules/expresso/deps/jscoverage/doc/example-jsunit/jsunit/licenses/lgpl-2.1.txt
npm ERR! fstream_path /Users/hidinginabunker/Dropbox/code/project/node_modules/jshint/node_modules/jasmine-node/node_modules/walkdir/node_modules/tap/node_modules/runforcover/node_modules/bunker/node_modules/expresso/deps/jscoverage/doc/example-jsunit/jsunit/licenses/lgpl-2.1.txt
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! message ENOENT, lstat '/Users/hidinginabunker/Dropbox/code/project/node_modules/jshint/node_modules/jasmine-node/node_modules/walkdir/node_modules/tap/node_modules/runforcover/node_modules/bunker/node_modules/expresso/deps/jscoverage/doc/example-jsunit/jsunit/licenses/lgpl-2.1.txt'
npm ERR! errno {}
npm ERR! fstream_stack Object.oncomplete (/usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26)
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/hidinginabunker/Dropbox/code/project/npm-debug.log
npm not ok
@Ardaking

Same problem here...

Node: 0.6.6
NPM: 1.1.36

http://pastebin.com/R6fLBgRh

@hidinginabunker

When I had this issue it was being caused by setting the "dev" flag to true my npm config. This installed all the dev-dependencies for each package. Ensure this flag is not set to true and see if that helps.

@Ardaking

Already on false

@luk-

Try with updated versions, this is super old; closing.

@luk- luk- closed this Mar 15, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment