简体   繁体   English

events.js:167 throw er; //未处理的'错误'事件

[英]events.js:167 throw er; //Unhandled 'error' event

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

I have over 700gb free space on my HDD, so don't think it is related to the error. 我的硬盘上有超过700gb的可用空间,所以不要认为它与错误有关。

!After the error it became unavailable to run 'npm start' on any project present on my machine. !错误发生后,我的机器上出现的任何项目都无法运行'npm start'

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. 我想将redux添加到我的React项目中。 Steps I made were: 我做的步骤是:

  1. Initializing a local git repository and commiting the key importance files 初始化本地git存储库并提交密钥重要性文件

  2. Downloading redux and react-redux packages via npm 通过npm下载redux和react-redux包

  3. npm start - here the trouble started npm start - 麻烦开始了

OS: ubuntu 16.04 LTS 操作系统:ubuntu 16.04 LTS

Node.js version: 10.7.0 Node.js版本:10.7.0

npm version: 6.2.0 npm版本:6.2.0

Also I have tried couple of options suggested on GitHub and this one => link 此外,我已尝试在GitHub上建议的几个选项,这个=> 链接

Run the below command to avoid ENOSPC: 运行以下命令以避免ENOSPC:

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

After that execute: 之后执行:

sysctl --system

Changing the default browser worked for me. 更改默认浏览器对我有用。 I am actually not sure why. 我实际上不确定为什么。

My AVG Antivirus labeled electron.exe as a malicious file and removed it from the project directory. 我的AVG Antivirus将electron.exe标记为恶意文件,并将其从项目目录中删除。 Restoring it from the quarantine and adding an exception on AVG removed the error for me 从隔离区恢复并在AVG上添加例外为我删除了错误

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM