1. 程式人生 > >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":"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)
有人說:升級最新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照做,然後再執行就成功了