安装 Expo CLI 的无限循环 [英] Endless loop on installing Expo CLI
本文介绍了安装 Expo CLI 的无限循环的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试在我的 Mac 上的终端上执行命令 npm start
.它提示我安装 Expo CLI,我说 Y,等到安装完成,然后我就进入了一个无限循环,它不断提示我再次安装 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?
推荐答案
原来我的配置文件搞砸了(我之前安装了 Anaconda,它似乎改变了 .bash_profile
条目)我删除了所有这些东西并插入了 bash 应该查看的正确 $PATH .就是这样.
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.
这篇关于安装 Expo CLI 的无限循环的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文