Be the first user to complete this post

  • 0
Add to List

Troubleshooting: Fatal error: watch ENOSPC on grunt watch

  The Problem 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. The Resolution
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
Reference http://stackoverflow.com/a/17437601



Also Read:

  1. Resolved - Error: listen eaccess using nodejs and pm2
  2. Resolved - /usr/bin/env: node: No such file or directory
  3. Resolved - Error: Could not load the bindings file. Tried
  4. Failed to lookup view index.js in directory - krakenjs
  5. Error: can not find module 'underscore'