欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Error watching file for changes: EMFILE

程序员文章站 2022-07-14 15:53:14
...

执行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:949:11)

    at FSEvent.FSWatcher._handle.onchange (fs.js:1400:11)

 

解决办法:重新安装watchman

 

1、卸载所有已安装的watchman:brew uninstall --force watchman

2、删除watchman相关文件:rm -rf /usr/local/var/run/watchman/

3、重新安装watchman:brew install watchman

相关标签: iOS