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.

Error: EMFILE: too many open files when require external dependencies

See original GitHub issue
$ cypress run

Started video recording: /foo/figtf.mp4

(Tests Starting)
Oops...we found an error preparing this test file:

/foo/cypress/integration/foo_spec.js

The error was:

Error: EMFILE: too many open files, open '/foo/node_modules/ramda/package.json'

This occurred while Cypress was compiling and bundling your test code. This is usually caused by:

* A missing file or dependency
* A syntax error in the file or one of its dependencies

Fix the error in your code and re-run your tests.

  (Tests Finished)

  - Tests:           0
  - Passes:          0
  - Failures:        1
  - Pending:         0
  - Duration:        0 seconds
  - Screenshots:     0
  - Video Recorded:  true
  - Cypress Version: 0.18.4
Oops...we found an error preparing this test file:

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
brian-manncommented, Mar 9, 2017

Fixed in 0.19.1.

2reactions
cezarsmpiocommented, Jan 6, 2017

Same error happens here when I require others dependencies like lodash, axios, etc.

Read more comments on GitHub >

github_iconTop Results From Across the Web

node and Error: EMFILE, too many open files - Stack Overflow
I used this command to test the number of files that were opened after doing various events in my app. lsof -i -n...
Read more >
React Native + Jest EMFILE: too many open files error-Reactjs
I'm running windows in powershell. Also used Git Bash and had similar problems. I updated my package.json as follows: "devDependencies": { "jest-cli" ...
Read more >
Troubleshooting | Vite Ruby
Verify that both vite and vite-plugin-ruby are in devDependencies in your ... if you are seeing errors such as #<Errno::EMFILE: Too many open...
Read more >
Error: Too many open files | AEM | Adobe Experience Cloud
Or the application requires more open files than is permitted by the process. The solution to this problem is: Find out what is...
Read more >
filequeue-gliph - npm Package Health Analysis - Snyk
Drop-in Replacement for fs that avoids Error: EMFILE, too many open files . As of version 0.4.0, Filequeue supports Node 0.10.x, and as...
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