Missing package "metro/src/lib/attachWebsocketServer"

Viewed 1457

After creating a new react-native expo project using npx expo init app-name. In the project folder, I ran npx expo start but I always get this error. Please check the screenshot below. enter image description here

I need help on this, thank you.

4 Answers

just use npm install -g expo@latest expo-cli@latest and everything should work fine.

You need to upgrade expo version by using npm i expo --location=global I had the same problem last week.

Okay, this happened because of the new React native. So I did npx expo init --template@44.0.0 my-app and it worked.

I don't know why but when I used sudo it worked. I am on Ubuntu

sudo expo start
Related