2017-03-23 90 views
0

NPM开始抛出下面的错误阵营 - 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) 

我已经试过

rm -rf node-modules/ 

npm install 

npm run build 

,但仍然出现错误。

+0

可能还有别的东西在4040端口上运行,或者你正在使用的东西 尝试关闭所有与npm相关的程序,然后再次运行它 –

回答

0

这看起来是一个类似的问题,使用相同的溶液作为对我回答here 你必须与brew install watchman安装watchman