Created
July 12, 2017 12:11
-
-
Save nickdotht/71fc6da89dadceaf02a0e64c1a314fe5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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