美文网首页
mac环境下brew command not found错误的解

mac环境下brew command not found错误的解

作者: WANKUN | 来源:发表于2022-04-03 17:19 被阅读0次

    mac环境下brew command not found错误的解决方法

    操作如下

    打开终端 - 输入以下命令:

    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

    1

    由于国内某些原因,导致http://raw.githubusercontent.com/被墙了,无法访问,提示以下错误:

    curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused

    1

    第一种解决方法:

    设置mac的DNS为114.114.114.114或者8.8.8.8

    设置DNS方法:设置DNS的办法

    第二种解决方法:

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

    ————————————————

    相关文章

      网友评论

          本文标题:mac环境下brew command not found错误的解

          本文链接:https://www.haomeiwen.com/subject/bkwfsrtx.html