美文网首页
react-native Error watching file

react-native Error watching file

作者: 壁虎尾巴 | 来源:发表于2018-03-26 19:13 被阅读0次

在运行react-native start 出现一下错误

 ERROR  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:1022:11)
    at FSEvent.FSWatcher._handle.onchange (fs.js:1360:11)

有可能是没有安装watchman, 或者更新mac OS后没有更新watchman
执行一下以下命令安装watchman即可
brew install watchman

相关文章

网友评论

      本文标题:react-native Error watching file

      本文链接:https://www.haomeiwen.com/subject/tbtdcftx.html