question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Doesn't work well with Node v7.0

See original GitHub issue
Error: ENFILE: file table overflow, open '/.../node_modules/bluebird/js/release/filter.js'
    at Object.fs.openSync (fs.js:557:18)
    at Object.fs.readFileSync (fs.js:467:33)
    at Module._extensions..js (module.js:581:20)
    at Object.nodeDevHook [as .js] (/usr/local/lib/node_modules/node-dev/lib/hook.js:61:7)
    at Module.load (module.js:490:32)
    at tryModuleLoad (module.js:449:12)
    at Function.Module._load (module.js:441:3)
    at Module.require (module.js:500:17)
    at require (internal/module.js:20:19)
    at module.exports (/.../node_modules/bluebird/js/release/promise.js:747:1)
    at Object.<anonymous> (/.../node_modules/bluebird/js/release/bluebird.js:9:36)
    at Module._compile (module.js:573:32)
    at Module._extensions..js (module.js:582:10)
    at Object.nodeDevHook [as .js] (/usr/local/lib/node_modules/node-dev/lib/hook.js:61:7)
    at Module.load (module.js:490:32)
    at tryModuleLoad (module.js:449:12)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
fgnasscommented, Jun 22, 2017

Mac OS has a very low file descriptor limit by default. You can fix it like this:

# Increase the kernel's maxfiles limits
sudo sysctl -w kern.maxfiles=65536
sudo sysctl -w kern.maxfilesperproc=65536

# Persist settings across reboots
echo kern.maxfiles=65536 | sudo tee -a /etc/sysctl.conf
echo kern.maxfilesperproc=65536 | sudo tee -a /etc/sysctl.conf

# Raise the limit for your user
ulimit -n 65536 65536

# Add it to your shell's profile
echo "ulimit -n 65536 65536" >> $HOME/.bash_profile

BTW, watchman suggests to use even higher numbers: https://facebook.github.io/watchman/docs/install.html#mac-os-file-descriptor-limits

They do the ulimit part themselves which is pretty convenient. This would make a nice addition to node-dev.

0reactions
bjornstarcommented, Oct 15, 2020

Node v7 and v6 are no longer supported. This doesn’t seem to be a problem anymore.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Node.js Sass version 7.0.0 is incompatible with ^4.0.0 || ^5.0.0
After downgrading to Node.js version 12 and installing the version 12-related 'node-sass', it worked fine. node -v # Output: v15.2.0 nvm use ...
Read more >
Unable to install with node 7 · Issue #319 - GitHub
I don't want to compile fibers, I just want to run npm install and everything works. ;). Depended by node-gyp for some reason....
Read more >
Presenting v7.0.0 of the npm CLI - The GitHub Blog
Today, we are excited to announce the release of npm v7.0.0, which will be shipping with Node.js 15.0.0 next week.
Read more >
Node v7.7.0 (Current)
Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.
Read more >
How to fix 'npm does not support Node.js v14' error on ...
This worked for me too, my npm v was not updated when I installed new node v, deleting node & manually deleting the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found