我想在 OS X 10.12 中运行 facebook/react-native/Examples 中的示例。
首先,我使用 npm install
,然后使用 npm start
:
出现错误:
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)
然后我用Xcode运行代码,还是有同样的错误。
我需要帮助或建议。非常感谢。
最佳答案
react-native-cli依赖watchman,你可以尝试用brew install watchman
安装watchman,然后再试。
关于javascript - 从 facebook/react-native/Examples 运行示例时为 "Error watching file for changes: EMFILE",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39675840/