Zach Adams Web Developer and Programmer

Fix Grunt Fatal error: watch ENOSPC

October 10, 2014

Ran into this error this morning in Grunt. Basically it’s caused because the user is limited by how many files can be watched by one user. You can increase this limit with the following command:

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

Or if for some reason you don’t want to increase this limit (God knows why) you can use┬ádedupe with npm

npm dedupe

Which simplifies the structure of npm


John says:
June 4th 2015 at 12:00am
Excellent Zach, thank you.

Leave a Reply

Your email address will not be published. Required fields are marked *