Reputation: 49
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.
Upvotes: 4
Views: 5345
Reputation: 1
I don't know why but when I used sudo it worked. I am on Ubuntu
sudo expo start
Upvotes: 0
Reputation: 1444
just use npm install -g expo@latest expo-cli@latest
and everything should work fine.
Upvotes: 2
Reputation: 49
Okay, this happened because of the new React native. So I did
npx expo init [email protected] my-app
and it worked.
Upvotes: 0
Reputation: 1
You need to upgrade expo version by using npm i expo --location=global
I had the same problem last week.
Upvotes: 0