2017-06-06 99 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