Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

First Expo project throwing error after npm start

I followed instructions to install Expo on my Windows 10 machine. I'm running node version 10.14.0 on my machine.

After I issued expo init command and created the first project, running npm start shows a message that reads:

This command requires Expo CLI. Do you want to install it globally [Y/n]?

Strange thing is that I'd already installed the latest version of expo-cli globally. Running expo-cli --version in the project folder gives me the version of expo-cli which is 2.5.0.

From here, it gets worse. No matter what I choose, I get the following error: enter image description here

Any idea how to fix this issue?

like image 423
Sam Avatar asked Nov 28 '18 22:11

Sam


1 Answers

I had the same issue, first run:

npm i expo-cli

then:

npm start

Worked for me

like image 177
kivul Avatar answered Sep 20 '22 20:09

kivul