mac 安装brew 报错

报错提要:443 git time out

https://blog.csdn.net/wjnhub/article/details/106710737

 

https://blog.csdn.net/zhufengyan521521/article/details/115519239

1、修改DNS配置

添加8.8.8.8,然后保存

 

2、 执行下面这句命令,更换为中科院的镜像:
git clone git://mirrors.ustc.edu.cn/homebrew-core.git/ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1

 

3、git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow

 

4、安装:/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

posted @ 2024-03-29 16:38  东方不败--Never  阅读(12)  评论(0)    收藏  举报