mac 如何安装 Homebrew

方法一:brew官网的安装脚本
执行命令:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

这个方法试过了,失败

方法二:
brew 镜像安装脚本

执行命令:

/usr/bin/ruby -e "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install)"

这个脚本用了中科大镜像加速访问,仅修改仓库地址部分,不会产生安全隐患。
关于中科大所提供的 Homebrew 镜像服务 https://lug.ustc.edu.cn/wiki/mirrors/help/brew.git

如果速度很慢,可以用梯子试试

posted @ 2024-12-10 17:01  水木青楓  阅读(145)  评论(0)    收藏  举报