Sam
Sam

Reputation: 30346

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?

Upvotes: 7

Views: 6573

Answers (3)

Andre Toledo Gama
Andre Toledo Gama

Reputation: 152

In my case I had the same error, so I went to the expo documentation (https://docs.expo.io/versions/latest/get-started/installation/), to see the error.

First I logged into the expo:

expo login --username -u [username] --password -p [password]

and then I checked if I was logged in:

expo whoami

Second I followed this help that I found on stackOverflow: How to resolve the error on 'react-native start'

Hope this helps.

Upvotes: 0

Omar bakhsh
Omar bakhsh

Reputation: 77

first type:

npm i expo-cli

then type :

   expo start

Upvotes: 0

kivul
kivul

Reputation: 1158

I had the same issue, first run:

npm i expo-cli

then:

npm start

Worked for me

Upvotes: 11

Related Questions