2017-03-23 89 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