Homebrew是一款包管理工具,目前支持macOS和linux系统。主要有四个部分组成: brew、homebrew-core 、homebrew-cask、homebrew-bottles。
1.打开终端,执行命令,这里使用了中科大的镜像地址(外网可能访问不到)
/usr/bin/ruby -e "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install)"
2.按照提示 回车 自动安装Xcode command line tool
3.等待安装