Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

ENAMETOOLONG when installing jshint #2590

Closed
fmarier opened this Issue · 6 comments

7 participants

@fmarier
$ 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/cli/0.4.3
npm http GET https://registry.npmjs.org/minimatch
npm http 304 https://registry.npmjs.org/cli/0.4.3
npm http 304 https://registry.npmjs.org/minimatch
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/glob
npm http 304 https://registry.npmjs.org/lru-cache
npm http 304 https://registry.npmjs.org/glob
npm http GET https://registry.npmjs.org/minimatch
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/graceful-fs
npm http 304 https://registry.npmjs.org/minimatch
npm http 304 https://registry.npmjs.org/inherits
npm ERR! Error: ENAMETOOLONG, open '/home/francois/.npm/f5b90d1f8708592b797105ec99568db0f730c8fc--home-francois-devel-browserid-node-modules-jshint-node-modules-cli-node-modules-glob-node-modules-graceful-fs.lock'
npm ERR!  { [Error: ENAMETOOLONG, open '/home/francois/.npm/f5b90d1f8708592b797105ec99568db0f730c8fc--home-francois-devel-browserid-node-modules-jshint-node-modules-cli-node-modules-glob-node-modules-graceful-fs.lock']
npm ERR!   errno: 49,
npm ERR!   code: 'ENAMETOOLONG',
npm ERR!   path: '/home/francois/.npm/f5b90d1f8708592b797105ec99568db0f730c8fc--home-francois-devel-browserid-node-modules-jshint-node-modules-cli-node-modules-glob-node-modules-graceful-fs.lock' }
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! System Linux 3.2.0-26-generic
npm ERR! command "nodejs" "/usr/bin/npm" "install" "jshint"
npm ERR! cwd /home/francois/devel/browserid
npm ERR! node -v v0.8.1
npm ERR! npm -v 1.1.34
npm ERR! path /home/francois/.npm/f5b90d1f8708592b797105ec99568db0f730c8fc--home-francois-devel-browserid-node-modules-jshint-node-modules-cli-node-modules-glob-node-modules-graceful-fs.lock
npm ERR! code ENAMETOOLONG
npm ERR! message ENAMETOOLONG, open '/home/francois/.npm/f5b90d1f8708592b797105ec99568db0f730c8fc--home-francois-devel-browserid-node-modules-jshint-node-modules-cli-node-modules-glob-node-modules-graceful-fs.lock'
npm ERR! errno 49
npm ERR! 49 errno
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/francois/devel/browserid/npm-debug.log
npm ERR! not ok code 0

(This looks like it may be related to GH-2587.)

@mintplant

I have this issue as well, with a variety of other packages.

@passy

I'm getting the same error when installing express.

@mintplant

Cache lock files include the installation path in their filename. When dependencies are too heavily nested, this ends up overflowing the max filename length for the lock file.

@thowland

same error here on ubuntu 12.0.4, node 0.8.1, npm 1.1.34 - in my case, it looks like the issues were a few dependencies included with grunt (yamlish, tap-results, winston, etc). I was able to fix it by identifying the problematic pacakges, and then directly installing them (eg, npm install yamlish). After a half dozen or so, npm install grunt worked. I assume that the issue was dependencies of dependencies of dependencies, building up hugely long filenames.

@rzurad

getting this problem when trying to install buster.js. node 0.8.1, npm 1.1.35, freebsd 8.2.

@smithclay

I also have the same problem with npm 1.3.5, node 0.8.1, and Mac OS 10.7.4 while installing grunt.

@isaacs isaacs closed this in a8d986e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.