之前有安装过HomeBrew,但最近执行 brew install scrcpy 时报 -bash: brew: command not found
通过修改~/.zshrc ,~/.zprofile 配置文件,在其中增加环境变量
编辑~/.zshrc 文件,增加以下环境变量
#brew config
export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles/bottle
最后 source ~/.zshrc 使配置文件生效
再编辑 ~/.zprofile 文件,增加以下环境变量
#brew config
export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles/bottles
最后source ~/.zshrc 使配置文件生效
现在验证一下,输入brew -v
已经不报 -bash: brew: command not found 的问题
现在开始安装scrcpy