mac安装homebrew报错

90 阅读1分钟

安装homebrew命令:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

报错:

(7) Failed to connect to raw.githubusercontent.com port 443 after 18 ms: Couldn't connect to server

修改为国内源安装:

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

成功!