mac电脑安装homebrew及下载超时问题解决

1.homebrew安装命令:

/bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)”

命令可能会更改,最新版可参考homebrew官网
2.如果Downloading Command Line Tools for xcode下载很慢或超时:
可以自己去官网自己下载:苹果开发者官网
搜索Command Line Tools for xcode,找对应稳定版本下载。
mac电脑安装homebrew及下载超时问题解决
Command Line Tools 安装完成后, 重新运行homebrew安装命令即可。