Chidem S
Chidem S

Reputation: 184

Endless loop on installing Expo CLI

I try to execute command npm start on terminal on my Mac. It prompts me to install Expo CLI , I say Y, wait until installation to finish, then I end up in an endless loop where it keeps prompting me to install Expo CLI again:

This command requires Expo CLI.
Do you want to install it globally [Y/n]? y
Installing the package 'expo-cli'...
Expo CLI installed. You can run `expo --help` for instructions.
This command requires Expo CLI.
Do you want to install it globally [Y/n]? 

Any ideas why I'm having this?

Upvotes: 3

Views: 5204

Answers (3)

SamuelC00
SamuelC00

Reputation: 61

Manually install expo-cli with npm install expo-cli before running npm start. This worked for me.

Upvotes: 2

Chidem S
Chidem S

Reputation: 184

Turns out my profile file was messed up (I had previously installed Anaconda which seems to have changed .bash_profile entries) I removed all those stuff and inserted the correct $PATH that bash should look into. That was it.

Upvotes: 4

Anagha Wadkar
Anagha Wadkar

Reputation: 11

I have faced similar issue. I have a few solutions. Try if they work out for you.

  1. In case you have added the path multiple times remove it.
  2. Ensure that there are no blank spaces or blank lines after the Path.(This one worked for me)

Reference

Upvotes: 1

Related Questions