Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Expo CLI is installed globally but "npm start" command still asks

I have installed expo-cli globally. But when I try to run command npm start it still asks to install expo-cli globally. Why?

I have reinstalled expo-cli again but same issue, even after machine restart.

Here is the screenshot for further details:

Expo CLI

like image 507
Nah Avatar asked Sep 27 '18 09:09

Nah


2 Answers

The same happened to me, I just started using expo start instead of npm start and is working now.

like image 190
Cesar Tomatis Avatar answered Sep 28 '22 12:09

Cesar Tomatis


Actually as I reinstalled expo-cli which was an updated version and was not matching with the project files, as the project was initialized using expo init.

I created another directory, reinitialized using expo init and now npm stat command works like a charm.

like image 36
Nah Avatar answered Sep 28 '22 11:09

Nah