简体   繁体   English

React-NPM启动失败并显示错误

[英]React - npm start fails with error

NPM start throwing the following error NPM开始引发以下错误

events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: Error watching file for changes: EMFILE
    at exports._errnoException (util.js:1022:11)
    at FSEvent.FSWatcher._handle.onchange (fs.js:1406:11)

I have tried 我努力了

rm -rf node-modules/

npm install

npm run build

but the error still occurs. 但是错误仍然发生。

这看起来是一个类似的问题,使用相同的溶液作为对我回答在这里 ,您必须安装watchmanbrew install watchman

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM