Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

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

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. Initializing a local git repository and commiting the key importance files

  2. Downloading redux and react-redux packages via npm

  3. npm start - here the trouble started

OS: ubuntu 16.04 LTS

Node.js version: 10.7.0

npm version: 6.2.0

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

like image 552
Sth Avatar asked Jan 27 '23 16:01

Sth


1 Answers

Run the below command to avoid ENOSPC:

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

After that execute:

sysctl --system
like image 184
Sth Avatar answered Jan 31 '23 11:01

Sth