node.js - 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
解决方案
推荐阅读
- mysql - 如何获取mysql同一列中数据的最小日期?
- python - 如何使用 discord.py 将消息发送到特定频道?
- python - Python 子字符串搜索,为什么我的循环比内置 == 运算符花费的时间更长?
- facebook - 我可以发布到 facebook 用户提要吗?
- r - 在 r ggplot2 中,如何按特定值调整“alpha”值?
- laravel - Laravel 访客策略总是将用户返回为 null,除非使用带有 Sanctum 的身份验证中间件
- html - 我的 bootstrsp 不是导航栏没有在较小的屏幕尺寸上切换
- javascript - 使用 javascript 以编程方式提交表单不会调用正确的函数
- react-native - React Native Expo AV 音频播放器 - react redux 状态管理
- c++ - Ofstream 不创建 txt 文件