"Error viewing file for changes: EMFILE" when starting an initiative project

I want to run the project responsible for the reaction, and the steps:

First react-native init testproject onereact-native run-ios

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)

Operation System Edition: OS X 10.12

+4
source share
1 answer

Reinstalling the watchman fixed this error for me.

brew uninstall watchman
brew install watchman

Another thing that worked for my teammate and can work for you, completely removes the directory node_modulesand launches

npm install

Please note that yarn installin this case does not work.

+3
source

Source: https://habr.com/ru/post/1655696/


All Articles