查看有没有ruby

  1. $ruby --version
  2. ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.x86_64-darwin21]

通过以下命令在安装brew时出现以下错误:

  1. $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  2. curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused

只好找一个安装脚本:

  1. /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

按命令行提示进行安装即可

分类: web

标签: