原文:https://www.jianshu.com/p/f8f12973f60f
安装Homebrew
// 安装
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
MacOS系统使用Homebrew官方地址时,报错:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to raw.githubusercontent.com:443
解决办法:
使用国内源
// 该地址提供多个国内源地址,安装非常简便,亲测有效。
/bin/zsh-c"$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"