Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Error watching file for changes: EMFILE" when run the examples from facebook/react-native/Examples

I want to run the Examples from facebook/react-native/Examples in OS X 10.12.

First I use npm install and then use npm start:

There is an error:

Error watching file for changes: EMFILE
{"code":"EMFILE","errno":"EMFILE","syscall":"Error watching file for changes:","filename":null}
Error: Error watching file for changes: EMFILE
    at exports._errnoException (util.js:1008:11)
    at FSEvent.FSWatcher._handle.onchange (fs.js:1406:11)

Then I use Xcode run the code but there is the same error.

I need help or advice. Thanks very much.

like image 267
聂小涛 Avatar asked Feb 06 '23 01:02

聂小涛


1 Answers

The react-native-cli depends on watchman, you can try to install watchman with brew install watchman,then have another try.

like image 157
Neal.Marlin Avatar answered Feb 08 '23 16:02

Neal.Marlin