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.
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.
Share Improve this question edited Sep 24, 2016 at 13:03 robertklep 204k37 gold badges415 silver badges406 bronze badges asked Sep 24, 2016 at 11:32 聂小涛聂小涛 5731 gold badge4 silver badges21 bronze badges2 Answers
Reset to default 8The react-native-cli depends on watchman, you can try to install watchman with brew install watchman
,then have another try.
This solved the issue for me:
brew install watchman