Endless loop on installing Expo CLI

此生再无相见时 提交于 2020-12-13 18:00:59

问题


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?


回答1:


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.




回答2:


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



来源:https://stackoverflow.com/questions/59593996/endless-loop-on-installing-expo-cli

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!