记录一下比较标准、干净的安装方式

举个例子,要安装Homebrew需要git工具我们不直接安装git,而是安装xcodeselect工具

xcodeselect包含git,并且在之后的开发过程中也会使用到xcodeselect工具

正常安装

https://brew.sh/index_zhcn

/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

国内安装

先安装xcodeselect工具后序流程需要使用gitxcodeselect包含git

xcode-select --install

详细说明https://gitee.com/cunkai/HomebrewCN

输入以下命令后,根据提示安装即可

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

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注