Metro Bundler keeps failing

I am new to expo, I have been trying to get my expo started for almost a week and it won’t just work… It worked about 2 weeks ago but since then its been different errors.

The latest error I got is:
Could not get status from Metro bundler. connect ECONNREFUSED 127.0.0.1:19001
Connecting to Metro bundler failed.
Error: Connecting to Metro bundler failed.
at _waitForRunningAsync (/@expo/xdl@57.2.1/src/Project.ts:1540:11)
at processTicksAndRejections (internal/process/task_queues.js:93:5)

Hi

Please run expo diagnostics and paste the output here. Also run the following and paste the whole output as well. Please format the output as preformatted text (The </> button) so that it keeps the formatting:

EXPO_DEBUG=true expo start

Thanks for your response,

Everything from EXPO_DEBUG=true expo start

mac@Macs-MacBook-Pro-2 eduthree % EXPO_DEBUG=true expo start

Starting project at /Users/mac/eduthree

Expo DevTools is running at http://localhost:19002

Opening DevTools in the browser… (press shift-d to disable)

Could not get status from Metro bundler. connect ECONNREFUSED 127.0.0.1:19005

Connecting to Metro bundler failed.

Error: Connecting to Metro bundler failed.

at _waitForRunningAsync (/@expo/xdl@57.4.1/src/Project.ts:1619:11)

at processTicksAndRejections (internal/process/task_queues.js:93:5)

Here is the expo diagnostic:

mac@Macs-MacBook-Pro-2 eduthree % expo diagnostics

Expo CLI 3.11.2 environment info:
System:
OS: macOS 10.15.2
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 12.13.1 - ~/.nvm/versions/node/v12.13.1/bin/node
Yarn: 1.19.1 - /usr/local/bin/yarn
npm: 6.13.4 - ~/.nvm/versions/node/v12.13.1/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
IDEs:
Android Studio: 3.5 AI-191.8026.42.35.5977832
Xcode: 11.2.1/11B500 - /usr/bin/xcodebuild
npmPackages:
expo: ~36.0.0 => 36.0.1
react: ~16.9.0 => 16.9.0
react-native: https://github.com/expo/react-native/archive/sdk-36.0.0.tar.gz => 0.61.4
npmGlobalPackages:
expo-cli: 3.11.2

Thanks for your help.

Please try removing the .expo directory within your project and run watchman watch-del-all. Then see if you have any watchman or node or expo processes running. (Of course you could have some other software running that uses node, so it might not be a problem if you find that. Use your judgement.)

If there are any old processes from a previous run of expo start, kill them. Then try running expo start -c again.

2 Likes

This worked thanks a lot, however I had to reinstall expo cli but I am wondering… why I keep getting the same error and I am always having to remove .expo, run watchman watch-del-all most time after I restart my system or restart the project.
It also gives me a couple of challenges when I have to connect to emulator or phone… it works after a lot of clearing caches but that process is a bit frustrating. I will appreciate if there is a solution that will take away this pains but for now I am fine.

1 Like

Hi

That’s definitely not normal. I don’t know what might be causing all of those problems.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.