Node.js – Grunt watch error – Waiting…Fatal error: watch ENOSPC

gruntjsnode.js

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

Best Answer

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