2017-06-06 98 views
0

我在克隆到位桶一個項目,當我運行NPM開始,我收到了一個錯誤:錯誤反應運行的腳本開始:event.js 182

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

Error: watch /var/www/html/eoffice-chat-web/public ENOSPC 
    at exports._errnoException (util.js:1026:11) 
    at FSWatcher.start (fs.js:1371:19) 
    at Object.fs.watch (fs.js:1397:11) 
    at createFsWatchInstance (/var/www/html/eoffice-chat-web/node_modules/chokidar/lib/nodefs-handler.js:37:15) 
    at setFsWatchListener (/var/www/html/eoffice-chat-web/node_modules/chokidar/lib/nodefs-handler.js:80:15) 
    at FSWatcher.NodeFsHandler._watchWithNodeFs (/var/www/html/eoffice-chat-web/node_modules/chokidar/lib/nodefs-handler.js:228:14) 
    at FSWatcher.NodeFsHandler._handleDir (/var/www/html/eoffice-chat-web/node_modules/chokidar/lib/nodefs-handler.js:407:19) 
    at FSWatcher.<anonymous> (/var/www/html/eoffice-chat-web/node_modules/chokidar/lib/nodefs-handler.js:455:19) 
    at FSWatcher.<anonymous> (/var/www/html/eoffice-chat-web/node_modules/chokidar/lib/nodefs-handler.js:460:16) 
    at FSReqWrap.oncomplete (fs.js:153:5) 
npm ERR! code ELIFECYCLE 
npm ERR! errno 1 
npm ERR! [email protected] start: `react-scripts start` 
npm ERR! Exit status 1 
npm ERR! 
npm ERR! Failed at the [email protected] start script. 
npm ERR! This is probably not a problem with npm. There is likely additional logging output above. 

npm ERR! A complete log of this run can be found in: 
npm ERR!  /home/tom/.npm/_logs/2017-06-06T09_07_59_232Z-debug.log 

請幫我解決它!謝謝。

+0

這將很容易調試,如果你可以分享代碼 – Neeraj

回答

2

ENOSPC錯誤的一部分表示驅動器在其運行時沒有空間。檢查以確保該分區上有足夠的空間。

+0

非常感謝!我修好了它。 –

+0

請將此標記爲公認的答案 – shirbr510

-3

錯誤執行events.js:182 NPM啓動

這裏的問題是錯誤:聽EADDRINUSE 0.0.0.0:3000 您已經連接到端口3000的過程,所以你有另一個節點.js服務正在運行?

+0

一般來說,這通常是導致此問題的原因,但具體而言,在這種情況下,由於他收到的錯誤,tim的答案是相關答案。 – shirbr510