Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


ENAMETOOLONG when installing jshint #2590

fmarier opened this Issue · 6 comments

7 participants

$ npm install jshint
npm http GET
npm http 200
npm http GET
npm http GET
npm http 304
npm http 304
npm http GET
npm http GET
npm http 304
npm http 304
npm http GET
npm http GET
npm http GET
npm http 304
npm http 304
npm http 304
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!     <>
npm ERR! or email it to:
npm ERR!     <>

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! 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.)


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


I'm getting the same error when installing express.


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.


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.


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


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.