Grunt watch error - Waiting...Fatal error: watch ENOSPC

kds picture kds · May 25, 2013 · Viewed 131.9k times · Source

Why do I get the Waiting...Fatal error: watch ENOSPC when I run the watch task ? How do I solve this issue?

Answer

kds picture kds · Jul 3, 2013

After doing some research found the solution. Run the below command.

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

For Arch Linux add this line to /etc/sysctl.d/99-sysctl.conf:

fs.inotify.max_user_watches=524288