brew 安装卡顿,无法安装homebrewcore

    科技2025-10-18  11

    cd  ~  curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install >> brew_install vim brew_install 

    BREW_REPO = "https://github.com/Homebrew/brew".freeze CORE_TAP_REPO = "https://github.com/Homebrew/homebrew-core".freeze 换为

    BREW_REPO = “https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git”.freeze CORE_TAP_REPO = “https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git”.freeze #就是“BREW_REPO”和“CORE_TAP_REPO”这两项,将其修改为清华的镜像  

    /usr/local/bin/ruby ~/brew_install 安装brew,在安装的时候,会卡在安装homebrewcore 界面,

    此时,直接git clone homebrewcore到homebrew里面 sudo git clone git://mirrors.ustc.edu.cn/homebrew-core.git/  /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core

    或者清华大学镜像: sudo git clone  https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git  /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core

    大功告成。

     

     

    https://git-scm.com/download/mac

    https://brew.sh

     

    Processed: 0.019, SQL: 8