记录mac zsh找不到brew的解决
brew
🍺 The missing package manager for macOS (or Linux)
项目地址:https://gitcode.com/gh_mirrors/br/brew

·
配置完javahome过程中出了点错误,导致无法brew命令无法使用,提示 not found 这个命令
经过多次尝试
解决办法如下:
检查根目录.zshrc中是否有
export PATH=$HOME/bin:/usr/local/bin:$PATH
export PATH="/opt/homebrew/bin:$PATH"
brew
🍺 The missing package manager for macOS (or Linux)
项目地址:https://gitcode.com/gh_mirrors/br/brew
复制代码
可以用echo 添加上导出语句,然后运行source命令,
echo 'export PATH="/opt/homebrew/bin:$PATH"' >> $HOME/.zshrc
source ~/.zshrc
推荐内容




🍺 The missing package manager for macOS (or Linux)
最近提交(Master分支:6 个月前 )
b97c763d
Add `HOMEBREW_BUNDLE_SERVICES` variable to `brew bundle`
13 小时前
60c047b5
This allows another way to pass `--services` to `brew bundle`.
14 小时前
更多推荐
所有评论(0)