传统安装方式为:https://brew.sh/
输入这行命令:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
但是会出现错误
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connectio
好在现在国内也有源了,但知道的人不多,本人找了好久才在知乎上找到一篇文章解决了mac包管理。
链接:
https://www.zhihu.com/question/35928898?sort=created
其中大同小异也需要输入一行命令:
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
直接无脑安装就行了;
这样就差不多了