【教程】Mac安装Homebrew
国内安装(可用):
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
如果采用了上面改的方法,就不用看下面的官方方法了。官方的方法可能需要翻墙或者安装完成之后的权限问题。
官方安装方法1:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
运行之后,如果出现下面提示表示不行
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
验证如果用浏览器访问https://raw.githubusercontent.com/Homebrew/install/master/install.sh也访问不了,需要翻墙,暂时不具备翻墙条件,只能换个方式。
