7

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?

3 Answers 3

11

I had the same issue, first run:

npm i expo-cli

then:

npm start

Worked for me

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks...Worked for me too..is it for what?
0

first type:

npm i expo-cli

then type :

   expo start

1 Comment

Welcome to SO. For a better answer, please format the commands as code and explain why this solves the problem.
0

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.