根据brew官网安装失败,网上找了一圈,自己总结了下方法,mark一下
1.直接克隆项https://github.com/Homebrew/brew
2.备注项目中bin目录到环境变量
3.brew doctor验证
4.修改brew的源为国内的源
-cd "$(brew --repo)"
-git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
-cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
-git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
网友评论