Reputation: 184
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
Reputation: 61
Manually install expo-cli with npm install expo-cli
before running npm start
. This worked for me.
Upvotes: 2
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
Reputation: 11
I have faced similar issue. I have a few solutions. Try if they work out for you.
Upvotes: 1