Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On install: Error: EMFILE, too many open files #979

Closed
reggi opened this issue Sep 19, 2013 · 1 comment
Closed

On install: Error: EMFILE, too many open files #979

reggi opened this issue Sep 19, 2013 · 1 comment

Comments

@reggi
Copy link

reggi commented Sep 19, 2013


thomas@workstation:object-mapper$ npm install -g mocha
npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
npm info trying registry request attempt 1 at 18:46:04
npm http GET http://registry.npmjs.org/mocha
npm http 304 http://registry.npmjs.org/mocha
npm info install [email protected] into /usr/local/lib
npm info installOne [email protected]
npm info /usr/local/lib/node_modules/mocha unbuild
npm info preuninstall [email protected]
npm info uninstall [email protected]
npm info postuninstall [email protected]
npm info preinstall [email protected]
npm info trying registry request attempt 1 at 18:46:05
npm http GET http://registry.npmjs.org/commander/0.6.1
npm info trying registry request attempt 1 at 18:46:05
npm http GET http://registry.npmjs.org/growl
npm info trying registry request attempt 1 at 18:46:05
npm http GET http://registry.npmjs.org/jade/0.26.3
npm info trying registry request attempt 1 at 18:46:05
npm http GET http://registry.npmjs.org/diff/1.0.7
npm info trying registry request attempt 1 at 18:46:05
npm http GET http://registry.npmjs.org/debug
npm info trying registry request attempt 1 at 18:46:05
npm http GET http://registry.npmjs.org/mkdirp/0.3.5
npm info trying registry request attempt 1 at 18:46:05
npm http GET http://registry.npmjs.org/glob/3.2.3
npm http 304 http://registry.npmjs.org/commander/0.6.1
npm http 304 http://registry.npmjs.org/growl
npm WARN package.json [email protected] No repository field.
npm http 304 http://registry.npmjs.org/debug
npm http 304 http://registry.npmjs.org/diff/1.0.7
npm http 304 http://registry.npmjs.org/jade/0.26.3
npm WARN package.json [email protected] No readme data.
npm http 304 http://registry.npmjs.org/glob/3.2.3
npm http 304 http://registry.npmjs.org/mkdirp/0.3.5
npm info install [email protected] into /usr/local/lib/node_modules/mocha
npm info install [email protected] into /usr/local/lib/node_modules/mocha
npm info install [email protected] into /usr/local/lib/node_modules/mocha
npm info install [email protected] into /usr/local/lib/node_modules/mocha
npm info install [email protected] into /usr/local/lib/node_modules/mocha
npm info install [email protected] into /usr/local/lib/node_modules/mocha
npm info install [email protected] into /usr/local/lib/node_modules/mocha
npm info installOne [email protected]
npm info installOne [email protected]
npm info installOne [email protected]
npm info installOne [email protected]
npm info installOne [email protected]
npm info installOne [email protected]
npm info installOne [email protected]
npm info /usr/local/lib/node_modules/mocha/node_modules/commander unbuild
npm info /usr/local/lib/node_modules/mocha/node_modules/growl unbuild
npm info /usr/local/lib/node_modules/mocha/node_modules/jade unbuild
npm info /usr/local/lib/node_modules/mocha/node_modules/diff unbuild
npm info /usr/local/lib/node_modules/mocha/node_modules/debug unbuild
npm info /usr/local/lib/node_modules/mocha/node_modules/glob unbuild
npm info /usr/local/lib/node_modules/mocha/node_modules/mkdirp unbuild
npm info preinstall [email protected]
npm info build /usr/local/lib/node_modules/mocha/node_modules/diff
npm info linkStuff [email protected]
npm info preinstall [email protected]
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No readme data.
npm info install [email protected]
npm info build /usr/local/lib/node_modules/mocha/node_modules/growl
npm info linkStuff [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm info postinstall [email protected]
npm info preinstall [email protected]
npm info build /usr/local/lib/node_modules/mocha/node_modules/debug
npm info linkStuff [email protected]
npm info preinstall [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm info build /usr/local/lib/node_modules/mocha/node_modules/commander
npm info linkStuff [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm info preinstall [email protected]
npm info build /usr/local/lib/node_modules/mocha/node_modules/mkdirp
npm info linkStuff [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm info preinstall [email protected]
npm info trying registry request attempt 1 at 18:46:05
npm http GET http://registry.npmjs.org/minimatch
npm info trying registry request attempt 1 at 18:46:05
npm http GET http://registry.npmjs.org/graceful-fs
npm info trying registry request attempt 1 at 18:46:05
npm http GET http://registry.npmjs.org/inherits
npm info preinstall [email protected]
npm info trying registry request attempt 1 at 18:46:05
npm http GET http://registry.npmjs.org/mkdirp/0.3.0
npm http 304 http://registry.npmjs.org/inherits
npm http 304 http://registry.npmjs.org/graceful-fs
npm http 304 http://registry.npmjs.org/minimatch
npm http 304 http://registry.npmjs.org/mkdirp/0.3.0
npm info install [email protected] into /usr/local/lib/node_modules/mocha/node_modules/glob
npm info install [email protected] into /usr/local/lib/node_modules/mocha/node_modules/glob
npm info install [email protected] into /usr/local/lib/node_modules/mocha/node_modules/glob
npm info installOne [email protected]
npm info installOne [email protected]
npm info installOne [email protected]
npm info /usr/local/lib/node_modules/mocha/node_modules/glob/node_modules/graceful-fs unbuild
npm info /usr/local/lib/node_modules/mocha/node_modules/glob/node_modules/inherits unbuild
npm info /usr/local/lib/node_modules/mocha/node_modules/glob/node_modules/minimatch unbuild
npm info install [email protected] into /usr/local/lib/node_modules/mocha/node_modules/jade
npm info installOne [email protected]
npm info /usr/local/lib/node_modules/mocha/node_modules/jade/node_modules/mkdirp unbuild
npm info preinstall [email protected]
npm info build /usr/local/lib/node_modules/mocha/node_modules/glob/node_modules/inherits
npm info linkStuff [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm info preinstall [email protected]
npm info build /usr/local/lib/node_modules/mocha/node_modules/glob/node_modules/graceful-fs
npm info linkStuff [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm info preinstall [email protected]
npm info trying registry request attempt 1 at 18:46:05
npm http GET http://registry.npmjs.org/lru-cache
npm info trying registry request attempt 1 at 18:46:05
npm http GET http://registry.npmjs.org/sigmund
npm info preinstall [email protected]
npm info build /usr/local/lib/node_modules/mocha/node_modules/jade/node_modules/mkdirp
npm info linkStuff [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm info build /usr/local/lib/node_modules/mocha/node_modules/jade
npm info linkStuff [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm http 304 http://registry.npmjs.org/lru-cache
npm http 304 http://registry.npmjs.org/sigmund
npm info install [email protected] into /usr/local/lib/node_modules/mocha/node_modules/glob/node_modules/minimatch
npm info install [email protected] into /usr/local/lib/node_modules/mocha/node_modules/glob/node_modules/minimatch
npm info installOne [email protected]
npm info installOne [email protected]
npm info /usr/local/lib/node_modules/mocha/node_modules/glob/node_modules/minimatch/node_modules/lru-cache unbuild
npm info /usr/local/lib/node_modules/mocha/node_modules/glob/node_modules/minimatch/node_modules/sigmund unbuild
npm info preinstall [email protected]
npm info build /usr/local/lib/node_modules/mocha/node_modules/glob/node_modules/minimatch/node_modules/sigmund
npm info linkStuff [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm info preinstall [email protected]
npm info build /usr/local/lib/node_modules/mocha/node_modules/glob/node_modules/minimatch/node_modules/lru-cache
npm info linkStuff [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm info build /usr/local/lib/node_modules/mocha/node_modules/glob/node_modules/minimatch
npm info linkStuff [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm info build /usr/local/lib/node_modules/mocha/node_modules/glob
npm info linkStuff [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm info build /usr/local/lib/node_modules/mocha
npm info linkStuff [email protected]
/usr/local/bin/mocha -> /usr/local/lib/node_modules/mocha/bin/mocha
/usr/local/bin/_mocha -> /usr/local/lib/node_modules/mocha/bin/_mocha
npm info install [email protected]
npm info postinstall [email protected]
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] 'repositories' (plural) Not supported.
npm WARN package.json Please pick one as the 'repository' field
npm ERR! Error: EMFILE, too many open files
npm ERR!     at new Glob (/usr/local/lib/node_modules/npm/node_modules/glob/glob.js:105:21)
npm ERR!     at glob (/usr/local/lib/node_modules/npm/node_modules/glob/glob.js:57:11)
npm ERR!     at gypfile (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:127:17)
npm ERR!     at /usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:113:33
npm ERR!     at Array.forEach (native)
npm ERR!     at extras (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:112:21)
npm ERR!     at parseJson (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:89:17)
npm ERR!     at /usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:61:33
npm ERR!     at fs.js:266:14
npm ERR!     at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Darwin 11.4.2
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "mocha"

/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:266
  log.error("cwd", process.cwd())
                           ^
Error: EMFILE, too many open files
    at process.errorHandler (/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:266:28)
    at process.EventEmitter.emit (events.js:117:20)
    at process._fatalException (node.js:272:26)
thomas@workstation:object-mapper$ 

@reggi
Copy link
Author

reggi commented Sep 19, 2013

This fixed it ulimit -n 64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant