首页 > 解决方案 > events.js:183 抛出错误;// 未处理的“错误”事件 ^ 错误:观看 /home/mihre/Desktop/React/latest/lc-net-front-end-website/assets ENOSPC

问题描述

当我将 Image 添加到项目中的 Asset 文件夹并尝试在终端中执行 npm start 时,出现此错误

我正在使用 ubuntu 我在终端中尝试了 == "killall node" 我删除了我插入到资产文件夹中的文件但仍然无法正常工作我重新启动了计算机

Starting the development server...
events.js:183
      throw er; // Unhandled 'error' event
      ^

Error: watch /home/mihre/Desktop/React/latest/lc-net-front-end-website/assets ENOSPC
    at FSWatcher.start (fs.js:1382:19)
    at Object.fs.watch (fs.js:1408:11)
    at createFsWatchInstance (/home/mihre/Desktop/React/latest/lc-net-front-end-website/node_modules/chokidar/lib/nodefs-handler.js:38:15)
    at setFsWatchListener (/home/mihre/Desktop/React/latest/lc-net-front-end-website/node_modules/chokidar/lib/nodefs-handler.js:81:15)
    at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/mihre/Desktop/React/latest/lc-net-front-end-website/node_modules/chokidar/lib/nodefs-handler.js:233:14)
    at FSWatcher.NodeFsHandler._handleDir (/home/mihre/Desktop/React/latest/lc-net-front-end-website/node_modules/chokidar/lib/nodefs-handler.js:429:19)
    at FSWatcher.<anonymous> (/home/mihre/Desktop/React/latest/lc-net-front-end-website/node_modules/chokidar/lib/nodefs-handler.js:477:19)
    at FSWatcher.<anonymous> (/home/mihre/Desktop/React/latest/lc-net-front-end-website/node_modules/chokidar/lib/nodefs-handler.js:482:16)
    at FSReqWrap.oncomplete (fs.js:153:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! react-redux-saga-boilerplate@2019.2.0 start: `node tools/start`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the react-redux-saga-boilerplate@2019.2.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/mihre/.npm/_logs/2019-05-24T19_09_09_245Z-debug.log

标签: node.jsreactjs

解决方案


推荐阅读