events.js:167 throw er;//未处理的“错误"事件 [英] events.js:167 throw er; //Unhandled 'error' event

查看:50
本文介绍了events.js:167 throw er;//未处理的“错误"事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Error: ENOSPC: no space left on device, watch '/home/me/Desktop/Edu/Web/JS/React/weather_app/public'

我的硬盘上有超过700gb的可用空间,所以不要认为这与错误有关.

I have over 700gb free space on my HDD, so don't think it is related to the error.

!错误发生后,无法在我的计算机上存在的任何项目上运行'npm start'.

!After the error it became unavailable to run 'npm start' on any project present on my machine.

今天,我开始做我的项目,昨天晚上我以完美的工作状态离开了我的项目.我想将 redux 添加到我的React项目中.我所做的步骤是:

Today I started work on my project that I left yesterday evening in a perfectly working state. I wanted to add redux to my React project. Steps I made were:

  1. 初始化本地git存储库并提交关键重要性文件

  1. Initializing a local git repository and commiting the key importance files

通过npm下载redux和react-redux软件包

Downloading redux and react-redux packages via npm

npm启动-麻烦开始了

npm start - here the trouble started

操作系统:ubuntu 16.04 LTS

OS: ubuntu 16.04 LTS

Node.js版本:10.7.0

Node.js version: 10.7.0

npm版本:6.2.0

npm version: 6.2.0

我也尝试了在GitHub上建议的几个选项,并且这个选项=>

Also I have tried couple of options suggested on GitHub and this one => link

推荐答案

运行以下命令来避免使用ENOSPC:

Run the below command to avoid ENOSPC:

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

之后执行:

sysctl --system

这篇关于events.js:167 throw er;//未处理的“错误"事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆