Show Buttons
Share On Facebook
Share On Twitter
Share On Google Plus
Share On Linkdin
Share On Reddit
Share On Stumbleupon
Contact us
Hide Buttons

Troubleshooting: Fatal error: watch ENOSPC on grunt watch

 

The Prob­lem

When run­ning your nodejs appli­ca­tion, if you have a file watcher, like grunt watch or web­pack watch, some­times you may get the fol­low­ing error message

Fatal error: watch ENOSPC

The rea­son is that there are prob­a­bly too many files being watched by your user.

The Res­o­lu­tion

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

Ref­er­ence

http://stackoverflow.com/a/17437601

Ryan Sukale

Ryan is just a regular guy next door trying to manage his life and finances.

You may also like...