在Mac上安装环境和软件时,brew比较常用。brew的安装在国内也不是特别友好,经常报各种错误。
Warning: The Ruby Homebrew installer is now deprecated and has been rewritten in
Bash. Please migrate to the following command:
/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: Connection refused
最近安装,看到一个国内大佬的一条命令操作方式。感觉很6。内部源全部是国内源,速度唰唰的~
复制下面这条命令直接贴到你的命令行工具中。
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
回车输入密码即可。
来源:https://zhuanlan.zhihu.com/p/111014448
文章评论