Troubleshooting: Fatal error: watch ENOSPC on grunt watch
When running your nodejs application, if you have a file watcher, like grunt watch or webpack watch, sometimes you may get the following error message
Fatal error: watch ENOSPC
The reason is that there are probably too many files being watched by your user.
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p