美文网首页
2020-03-04 mac 配置.bash_profile 文

2020-03-04 mac 配置.bash_profile 文

作者: skiys | 来源:发表于2020-03-04 09:30 被阅读0次

问题发生:

搭建flutter时 配置flutter环境变量错误 导致bash 命令全部失效。

解决方法:

命令行输入

export PATH=/usr/bin:/usr/sbin:/bin:/sbin:/usr/X11R6/bin

创建临时的环境变量 此时不能关闭终端

到所在目录打开.bash_profile

open .bash_proflie

进行修改 .bash_profile

修改完成后 command s保存

配置生效

source .bash_profile

问题解决

相关文章

网友评论

      本文标题:2020-03-04 mac 配置.bash_profile 文

      本文链接:https://www.haomeiwen.com/subject/axpplhtx.html