我想初始化一个react-native项目,步骤:
第一个react-native init testproject
然后 react-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)
操作系统版本:OS X 10.12
最佳答案
重新安装 watchman 为我修复了这个错误。
brew uninstall watchman
brew install watchman
对我的队友有用并且可能对你有用的另一件事是完全删除 node_modules
目录并运行
npm install
请注意,yarn install
在这种情况下不起作用。
关于javascript - "Error watching file for changes: EMFILE"当初始化一个 react-native 项目时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39676899/