Greenstand / treetracker-web-map-core-demo

5 stars 7 forks source link

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

Open dadiorchen opened 1 year ago

dadiorchen commented 1 year ago

After npm start, get:

Logs for your project will appear below. Press Ctrl+C to exit.
node:events:368
      throw er; // Unhandled 'error' event
      ^

Error: EMFILE: too many open files, watch
    at FSEvent.FSWatcher._handle.onchange (node:internal/fs/watchers:204:21)
Emitted 'error' event on NodeWatcher instance at:
    at FSWatcher._checkedEmitError (/Users/deanchen/work/greenstand/treetracker-web-map-core-demo/node_modules/metr
o-file-map/src/watchers/NodeWatcher.js:134:12)
    at FSWatcher.emit (node:events:390:28)
    at FSEvent.FSWatcher._handle.onchange (node:internal/fs/watchers:210:12) {
  errno: -24,
  syscall: 'watch',
  code: 'EMFILE',
  filename: null
}
treetracker-web-map-core-demo((HEAD detached at staley/simple-card))% 

OS: macos 10.5 ulimit: ulimit -n 10240

image
pierrelstan commented 1 year ago

@dadiorchen run ulimit -n in the terminal to see the limit and run ulimit -n 1024 to set a limit of 1024 to it. Let me know if its works.

dadiorchen commented 1 year ago

No luck for this... I'm now change to run it in a ubuntu container.

mahimnamehta commented 4 months ago

https://stackoverflow.com/questions/58675179/error-emfile-too-many-open-files-react-native-cli - link to stackoverflow.

Maybe it will be helpful. @dadiorchen