gpt4 book ai didi

installation - 修复Homebrew警告: Directory should not end in a slash

转载 作者:行者123 更新时间:2023-12-04 13:39:22 27 4
gpt4 key购买 nike

我今天安装了Homebrew,并按照应用程序的建议运行了

brew doctor

我收到此警告:
Warning: Some directories in your path end in a slash.
Directories in your path should not end in a slash. This can break other
doctor checks. The following directories should be edited:
/Users/MyUsername/

谷歌搜索之后,我打开了
vi ~/.bash_profile

从终端并手动删除我的用户名后的“/”。所以现在我的.bash_profile看起来像这样:
export PATH=$PATH:/Users/MyUsername
export PATH=/usr/local/git/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/Users/MyUsername

然后,我再次输入了提示,并得到了相同的警告。我该如何解决?

最佳答案

您是否尝试过重启终端?或至少打开一个新 session (标签)?

关于installation - 修复Homebrew警告: Directory should not end in a slash,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23962540/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com