[英]“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. 我想在OS X 10.12中运行来自facebook / react-native / Examples的示例。
First I use npm install
and then use npm start
: 首先我使用
npm install
然后使用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. 然后我使用Xcode运行代码,但有相同的错误。
I need help or advice. 我需要帮助或建议。 Thanks very much.
非常感谢。
react-native-cli依赖于守望者,你可以尝试用brew install watchman
来安装守望brew install watchman
,然后再试一次。
这解决了我的问题: brew install watchman
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.