-1

I'm using React Native 40.0.1 and I am getting the following error when running yarn start or expo start:

Error: EMFILE: too many open files, watch
    at FSEvent.FSWatcher._handle.onchange (node:internal/fs/watchers:204:21)

I've tried brew install watchman as this was suggested by multiple GH issues and SO posts that I visited. This didn't fix the issue.

I'm using NodeJS 16.14.2 (expo doesn't officially support 17) with expo-cli 5.4.12.

package.json and yarn.lock can be found on this GitHub Gist:

https://gist.github.com/DillonB07/5ea28e083074333879bae52b6134ee2c

My OS is macOS Catalina 10.15.7 with an Intel Chip.

How do I fix this issue?

DillonB07
  • 154
  • 11
  • Hi, seems like a duplicate of https://stackoverflow.com/a/59679356/19330634 – l -_- l Jun 27 '22 at 16:22
  • Does this answer your question? [Error: EMFILE: too many open files - React Native CLI](https://stackoverflow.com/questions/58675179/error-emfile-too-many-open-files-react-native-cli) – l -_- l Jun 27 '22 at 16:22
  • No, neither of those help. (I found them before posting this) I think I have the same issue but none of the proposed solutions worked for me. – DillonB07 Jun 27 '22 at 16:23
  • Try this also https://github.com/facebook/watchman/issues/923#issuecomment-884837704 – l -_- l Jun 27 '22 at 16:25
  • Thanks, but that's not eligible for me. I'm not using the iOS emulator as I don't have XCode. I'm using an Android emulator. It's also not just Android that's the issue. It's the web server as well. – DillonB07 Jun 27 '22 at 16:29

1 Answers1

-1

It worked after I updated my dependencies. I was using old dependencies because they were supposed to work for my project, but apparently there was an issue somewhere.

DillonB07
  • 154
  • 11