react-native运行样例报错:Error watching file for changes: EMFILE

前端之家收集整理的这篇文章主要介绍了react-native运行样例报错:Error watching file for changes: EMFILE前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
Error watching file for changes: EMFILE
{"code":"EMFILE","errno":"syscall":"Error watching file for changes:",152);">"filename":null}
Error: for changes: EMFILE
    at exports._errnoException (util.js:1008:11)
    at FSEvent.FSWatcher._handle.onchange (fs.js:1406:11)
有人说:升级最新MacOS系统后,需要重新安装一次brew install watchman
此时会提示你:

Error: You must `brew link autoconf automake` before watchman can be installed

VictordeMacBook-Pro:AwesomeProject victor$ brew link autoconf automake

brew install watchman之前要:brew link autoconf automake

OK照做,然后再运行就成功了

猜你在找的React相关文章