主要是资源访问太慢造成的,替换默认源镜像就行。

brew使用国内镜像源

这里用中科大的,另外还有清华的可用

 
 
1
2
3
4
5
6
7
8
9
10
# 步骤一
//mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
 
# 步骤二
//mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
 
#步骤三
update

注意这里需要等待一会,因为要更新资源。

更新完后使用brew update,brew install速度变快很多了,不会卡在那半天没动静,替换镜像完成。

复原

1
2
3
4
5
6
7
//github.com/Homebrew/brew.git
 
//github.com/Homebrew/homebrew-core
 
update

相关文章:

  • 2022-01-04
  • 2022-03-03
  • 2021-07-31
  • 2021-12-22
  • 2021-12-23
  • 2021-08-15
  • 2021-08-22
  • 2021-12-11
猜你喜欢
  • 2021-06-16
  • 2021-12-04
  • 2022-12-23
  • 2021-07-12
  • 2022-12-23
  • 2022-01-14
相关资源
相似解决方案