2016-09-24 13 views
3

我想运行OS X 10.12中的facebook/react-native/Examples中的示例。运行facebook/react-native /中的示例时出现“更改文件时出错:EMFILE”示例

首先我用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中运行的代码,但有相同的错误。

我需要帮助或建议。非常感谢。

回答

7

react-native-cli取决于看守,你可以试着用“brew install watchman”安装watchman,然后再试一次。

0

这解决了我的问题: brew install watchman

相关问题