Nozbe / WatermelonDB

🍉 Reactive & asynchronous database for powerful React and React Native apps ⚡️
https://watermelondb.dev
MIT License
10.49k stars 589 forks source link

Error: EMFILE: too many open files, watch #1816

Open puresprout opened 2 months ago

puresprout commented 2 months ago

Hello When I run the example app with npm start , I get the following error:

Commands like increase file limit didn't help at all. ulimit -n

Any help?

node:events:497
      throw er; // Unhandled 'error' event
      ^

Error: EMFILE: too many open files, watch
    at FSWatcher._handle.onchange (node:internal/fs/watchers:207:21)
Emitted 'error' event on NodeWatcher instance at:
    at NodeWatcher.checkedEmitError (/Users/kakaobank1/Downloads/develop/sample/WatermelonDB/examples/native/node_modules/sane/src/node_watcher.js:143:12)
    at FSWatcher.emit (node:events:519:28)
    at FSWatcher._handle.onchange (node:internal/fs/watchers:213:12) {
  errno: -24,
  syscall: 'watch',
  code: 'EMFILE',
  filename: null
}

Node.js v20.15.0
KrisLau commented 1 month ago

This is not caused by WatermelonDB from what I can tell: https://stackoverflow.com/questions/8965606/node-and-error-emfile-too-many-open-files