Error: EMFILE on OSX when requiring lots of files
See original GitHub issueWhen requiring 256 files from a single file on OSX browserify throws:
Error: EMFILE, open '/Users/karl/Sites/KVP/GuruFramework/package.json'
From Googling around it looks like this is caused by attempting to open too many files in parallel.
It looks like this could be solved by using the graceful-fs
module to limit the number of files opened in parallel.
Issue Analytics
- State:
- Created 10 years ago
- Comments:32 (3 by maintainers)
Top Results From Across the Web
NodeJS error "EMFILE, too many open files" on Mac OS
Your code is opening too many files. By default, OS X has a limit of 256 simultaneously opened files. When your code requires...
Read more >EMFILE: too many open files, uv_cwd in Mac OS - Anna Coding
The solution to solve update error: EMFILE: too many open files, uv_cwd in Mac OS.
Read more >Is there a fix for the "Too many open files in system" error on ...
I applied all the below limit increases but they didn't help immediately. I am running command line phpUnit tests > selenium server >...
Read more >Fix 'EMFILE: too many open files' error in Jest - SeanMcP.com
When trying to run Jest in watch mode, this error may mean that you are missing a dependency.
Read more >NodeJS error "EMFILE, too many open files" on Mac OS-node.js
[Solved]-NodeJS error "EMFILE, too many open files" on Mac OS-node.js ... You need to reinstall watchman and make sure that brew's version is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
As a work around I have upped the file limit for my user by adding this to
~/.bash_profile
I’m already using npm 3… And with modules I ment application entry points => bundles for browserify. The problem is that I’M creating multiple bundles at the same time. I need to implement some kind of scheduler which watches over it and limits it e.g. to 5 parallel browserify bundlings…