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

Comments

John says:
June 4th 2015 at 12:00am
Excellent Zach, thank you.
José Luis says:
March 15th 2016 at 12:00am
There is a similar error with Atom. jajajajjaa

Leave a Reply

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