错误日志:
events.js:112 扔掉//未处理的错误'事件 ^
错误:watch / home / cchen / My / gallering / frontend / public EMFILE at _errnoException(util.js:1003:13) 在FSWatcher.start(fs.js:1409:19) 在Object.fs.watch(fs.js:1435:11) at createFsWatchInstance(/home/cchen/My/gallering/frontend/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:37:15) at setFsWatchListener(/home/cchen/My/gallering/frontend/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:80:15) 在FSWatcher.NodeFsHandler._watchWithNodeFs(/home/cchen/My/gallering/frontend/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:228:14) 在FSWatcher.NodeFsHandler._handleDir(/home/cchen/My/gallering/frontend/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:407:19) 在FSWatcher。 (/home/cchen/My/gallering/frontend/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:455:19) 在FSWatcher。 (/home/cchen/My/gallering/frontend/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:460:16) 在FSReqWrap.oncomplete(fs.js:171:5)错误命令失败,退出代码为1。
看起来守望者起初失败了。 我重新安装守望者但仍然遇到同样的错误。