Skip to content

Instantly share code, notes, and snippets.

@nickdotht
Created July 12, 2017 12:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickdotht/71fc6da89dadceaf02a0e64c1a314fe5 to your computer and use it in GitHub Desktop.
Save nickdotht/71fc6da89dadceaf02a0e64c1a314fe5 to your computer and use it in GitHub Desktop.
When building React Native apps on Linux, you might get this error at some point:
The user limit on the total number of inotify watches was reached; increase the fs.inotify.max_user_watches sysctl
Here's how to fix it:
You will need administration privileges at some point!
1. Check for the current value of max_user_watches
cat /proc/sys/fs/inotify/max_user_watches
2. Set max_user_watches to a number higher than the current value
sudo sysctl fs.inotify.max_user_watches=10000
That's it! Now make sure it was set correctly:
cat /proc/sys/fs/inotify/max_user_watches
Enjoy!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment