How can I temporarily disable Watchman to see if it's the cause of the 'emfile' error?

Question

Grade: Education Subject: Support
How can I temporarily disable Watchman to see if it's the cause of the 'emfile' error?
Asked by:
86 Viewed 86 Answers

Answer (86)

Best Answer
(328)
You can temporarily disable Watchman by running `watchman shutdown-server`. Then, try running your React Native development server or build process. If the error disappears, it strongly suggests that Watchman is the primary culprit. Remember to restart Watchman with `watchman watch-del-all` and `watchman watch` after testing.