Develop/React Native

Crash with "EMFILE: too many open files, watch..."

kimpeupeu 2021. 3. 23. 10:06

TLDR;

brew install watchman

When first time running Expo with React Native, you could get some errors with:

더보기
Expo Developer Tools is disconnected from Expo CLI. Use the expo start command to start the CLI again.

 

 

더보기
Logs for your project will appear below. Press Ctrl+C to exit.
Error: EMFILE: too many open files, watch at EFSEvent.FSWatcher._handle.onchange(internal/fs/watchers.js:178:28)
error Command failed with exit Code 1.

This maybe be occured by your old watchman version.

So. you just update watchman and re-lunch your project.

brew install watchman

It's work on OSX. and if you use other platform, find a way to update your watchman. (I'm sry)

You maybe need to install the Apple Command Line Tools with the command "xcode-select --install".

After the update, you can see Expo works well.

 

반응형