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?

Sam
  • 26,817
  • 58
  • 206
  • 383

3 Answers3

11

I had the same issue, first run:

npm i expo-cli

then:

npm start

Worked for me

kivul
  • 1,148
  • 13
  • 28
0

first type:

npm i expo-cli

then type :

   expo start
Omar bakhsh
  • 77
  • 1
  • 4
  • 3
    Welcome to SO. For a better answer, please format the commands as code and explain why this solves the problem. – GCSDC May 11 '19 at 00:53
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.