0

我在 bitbucket 中克隆了一个项目,当我运行 npm start 时,我收到一个错误:

 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! eoffice-chat-web@0.1.0 start: `react-scripts start`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the eoffice-chat-web@0.1.0 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

请帮我修复它!谢谢你。

4

2 回答 2

3

您的ENOSPC错误部分意味着运行它的驱动器上没有空间。检查以确保该分区上有足够的可用空间。

于 2017-06-07T03:43:42.463 回答
-3

npm start 上的错误执行 events.js:182

这里的问题是 Error: listen EADDRINUSE 0.0.0.0:3000 你已经有一个进程连接到端口 3000,那么你有另一个 node.js 服务在运行吗?

于 2017-07-23T18:49:26.777 回答