4
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

Manish Balodia
  • 1,863
  • 2
  • 23
  • 37
Sth
  • 522
  • 8
  • 21
  • This space is not related to to total hard disk but allocated to your app – RIYAJ KHAN Aug 01 '18 at 09:57
  • Can you give me more specifications, so I can google a solve method for that? :) Or simply an advise on how to enlarge the space. – Sth Aug 01 '18 at 10:00

3 Answers3

8

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
Sth
  • 522
  • 8
  • 21
0

Changing the default browser worked for me. I am actually not sure why.

Kanabos
  • 420
  • 4
  • 11
0

My AVG Antivirus labeled electron.exe as a malicious file and removed it from the project directory. Restoring it from the quarantine and adding an exception on AVG removed the error for me

ninjadev
  • 23
  • 1
  • 6