node:events:485 throw er; // Unhandled 'error' event.

I went to setup my macbook M1 to React-Native development with Xcode and Expo cli .. i Download and install

node , watchman , and some other dependancies. i got this error enyone can help me .. beacuse i try to many

ways but still error is come for me.


node:events:485

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 FSWatcher._checkedEmitError (/Users/thiniranilushan/MyFirstProject/node_modules/metro-file-map/src/watchers/NodeWatcher.js:82:12)

at FSWatcher.emit (node:events:507:28)

at FSWatcher._handle.onchange (node:internal/fs/watchers:213:12) {

errno: -24,

syscall: 'watch',

code: 'EMFILE',

filename: null

}


Node.js v23.1.0


Posted on Oct 30, 2024 7:46 PM

Reply
2 replies

Nov 4, 2024 1:32 AM in response to Thinira

node:events:485


      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 FSWatcher._checkedEmitError (/Users/sumitoffice/Desktop/new/onfit-app/node_modules/metro-file-map/src/watchers/NodeWatcher.js:82:12)


    at FSWatcher.emit (node:events:507:28)


    at FSWatcher._handle.onchange (node:internal/fs/watchers:213:12) {


  errno: -24,


  syscall: 'watch',


  code: 'EMFILE',


  filename: null


}




Node.js v23.1.0


Getting this error when trying to create archive build or running locally.

From 1st Nov I'm getting this error, earlier it was working fine.

Also, I'm have used react-native cli to

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

node:events:485 throw er; // Unhandled 'error' event.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.