Mac OS 10.13 安装homebrew 报错
参考 :homebrew官网地址
提示错误信息:
Error downloading Command Line Tools (macOS High Sierra version 10.13) for Xcode: 网络连接已中断。

根据错误信息可以发现xcode-select的路径出错了,新版的可能跟旧版的好像不太一样,xcode的命令行工具不再安装在 /Library/Developer/CommandLineTools 这个位置了,需要手动修改路径
命令如下:
1. sudo xcode-select --switch /Applications/Xcode.app/
2. xcode-select -p

然后在执行安装命令:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

注意因网络原因导致的安装报错,可以试着使用VPN
网友评论