记录一下比较标准、干净的安装方式
举个例子,要安装Homebrew就需要git工具,我们不直接安装git,而是安装xcode-select工具
xcode-select包含git,并且在之后的开发过程中也会使用到xcode-select工具
正常安装
https://brew.sh/index_zh-cn
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
错误提示
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
国内安装
先安装xcode-select工具,后序流程需要使用git,xcode-select包含git
xcode-select --install
详细说明:https://gitee.com/cunkai/HomebrewCN
输入以下命令后,根据提示安装即可
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"