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
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p