自作インストール
ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
遅い醸造のインストールの問題を解決
1. brew.gitを交換してください:
cd "$(brew --repo)”
git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git
2.代わりに自作-core.git:
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.aliyun.com/homebrew/homebrew-core.git
3.ターミナルのコマンドを入力します。
エコー$ SHELL出力は/ binに/ zshのか/ binに/ bashのある参照
- /ビン/または自作-ボトルのzsh:
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.aliyun.com/homebrew/homebrew-bottles' >> ~/.zshrc
source ~/.zshrc
- /ビン/ bashの代わりに自作のボトル:
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.bash_profile
source ~/.bash_profile
醸造構成を復元4
- リセットbrew.git
cd "$(brew --repo)"
git remote set-url origin https://github.com/Homebrew/brew.git
- リセット自作-core.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://github.com/Homebrew/homebrew-core.git
- リセット自作ボトル
在这里插入代码片`注释掉之前加入的语句就行
醸造インストールパッケージを解決する自作の更新で立ち往生されています
ノードをインストールするBREWのコマンドを実行し、結果はインタフェースの更新自作で立ち往生されてきた、2つの解決方法があります
この方法の一つは:自動的にコマンドが醸造から直接実行されるたびに更新(推奨)
vim ~/.bash_profile
# 新增一行
export HOMEBREW_NO_AUTO_UPDATE=true
方法2:
出现Updating Homebrew的时候ctrl+c一下