Skip to content

Instantly share code, notes, and snippets.

@abdallahokasha
Last active January 28, 2020 12:33
Show Gist options
  • Save abdallahokasha/83c97bf44c2f15ac0acfee3be363ebc4 to your computer and use it in GitHub Desktop.
Save abdallahokasha/83c97bf44c2f15ac0acfee3be363ebc4 to your computer and use it in GitHub Desktop.

Error: ENOSPC: System limit for number of file watchers reached, watch

Increasing the amount of inotify watchers

You can set a new limit temporary with:
sudo sysctl fs.inotify.max_user_watches=524288
sudo sysctl -p
If you like to make your limit permanent, use:
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf
sudo sysctl -p

[nodemon] Internal watch failed: watch ENOSPC

nodemon github issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment