美文网首页
Mac下安装homebrew 报错:RPC failed; cu

Mac下安装homebrew 报错:RPC failed; cu

作者: 独家记忆3997 | 来源:发表于2019-04-11 16:04 被阅读0次

1.将brew的install文件下载本地

curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install >> brew_install

2.修改install文件的镜像源

(我没有用vim,是进入访达用command+shift+G找到brew_install文件进行修改)

BREW_REPO="https://github.com/Homebrew/brew".freeze

改为

BREW_REPO="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git".freeze

BREW_REPO下添加

CORE_TAP_REPO="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git".freeze

3.开始安装

/usr/bin/ruby brew_install

相关文章

网友评论

      本文标题:Mac下安装homebrew 报错:RPC failed; cu

      本文链接:https://www.haomeiwen.com/subject/ejotwqtx.html