安装 homebrew 时遇到,Warning: /opt/homebrew/bin is not in your PATH.

此时homebrew已经安装成功了,但是没找到路径。需要把路径添加到path环境变量中。

在命令行依次输入并回车

echo ‘export PATH=”/opt/homebrew/bin:$PATH”‘ >> ~/.zshrc

source ~/.zshrc

echo $PATH

如下图

安装 homebrew 时遇到,Warning: /opt/homebrew/bin is not in your PATH.

会显示 /opt/homebrew/bin,说明环境配置成功。如下图

安装 homebrew 时遇到,Warning: /opt/homebrew/bin is not in your PATH.

本文来自网络,不代表协通编程立场,如若转载,请注明出处:https://net2asp.com/ebb9a6e19f.html