1. 安装Command Line Tools
终端输入 xcode-select --install 回车,若下载慢,可搜索Command line Tools的pkg文件,自行安装。
或者直接安装Homebrew,在提示安装Command Line Tools时安装亦可。
2. 安装Homebrew
ruby -e "$(curl -fsSL --insecure https://raw.githubusercontent.com/Homebrew/install/master/install)"
在-fsSl后添加 --insecure 即可