/ Chirp

Fixing NodeJS ENOSPC error on Ubuntu while watching many file

I ran into the a ENOSPC error while watching many files using chokidar. I assumed the issue related to disk space which was not the case.

The below fix worked like magic once I ran it in bash.

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

Credit: https://stackoverflow.com/questions/16748737/grunt-watch-error-waiting-fatal-error-watch-enospc