安装Expo CLI时无休止的循环 [英] Endless loop on installing Expo CLI

查看:87
本文介绍了安装Expo CLI时无休止的循环的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在Mac的终端上执行命令 npm start .它会提示我安装Expo CLI,我说是,等待安装完成,然后我陷入无尽循环,不断提示我重新安装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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆