brew切换源

survivors@sdeMacBook-Pro ~ % git clone git://mirrors.ustc.edu.cn/homebrew-core.git/ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1
 
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...
remote: Counting objects: 5105, done.
remote: Compressing objects: 100% (4904/4904), done.
remote: Total 5105 (delta 44), reused 886 (delta 5)
Receiving objects: 100% (5105/5105), 4.14 MiB | 1.17 MiB/s, done.
Resolving deltas: 100% (44/44), done.
survivors@sdeMacBook-Pro ~ % cd "$(brew --repo)" 
survivors@sdeMacBook-Pro Homebrew % git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
survivors@sdeMacBook-Pro Homebrew % cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
survivors@sdeMacBook-Pro homebrew-core % git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
 
survivors@sdeMacBook-Pro homebrew-core % brew update
Already up-to-date.

 ✘ tanli@tanli-MacBook-Pro  ~  sudo git clone git://mirrors.ustc.edu.cn/homebrew-core.git/ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1
Password:
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...
remote: Enumerating objects: 6359, done.
remote: Counting objects: 100% (6359/6359), done.
remote: Compressing objects: 100% (6054/6054), done.
remote: Total 6359 (delta 87), reused 2747 (delta 56), pack-reused 0
Receiving objects: 100% (6359/6359), 6.65 MiB | 1.36 MiB/s, done.
Resolving deltas: 100% (87/87), done.
 tanli@tanli-MacBook-Pro  ~  cd "$(brew --repo)"
 tanli@tanli-MacBook-Pro  /opt/homebrew   stable  git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
 tanli@tanli-MacBook-Pro  /opt/homebrew   stable  cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
 tanli@tanli-MacBook-Pro  /opt/homebrew/Library/Taps/homebrew/homebrew-core   master  git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
 tanli@tanli-MacBook-Pro  /opt/homebrew/Library/Taps/homebrew/homebrew-core   master  brew update
Already up-to-date.
 tanli@tanli-MacBook-Pro  /opt/homebrew/Library/Taps/homebrew/homebrew-core   master  cd
 tanli@tanli-MacBook-Pro  ~  brew search  node
==> Formulae
libbitcoin-node     node-build          node@14             nodeenv
linode-cli          node-sass           node@16             nodenv
llnode              node@10             node_exporter       ode
node                node@12             nodebrew

==> Casks
nodebox                                  nodeclipse

If you meant "node" specifically:
It was migrated from homebrew/cask to homebrew/core.
 tanli@tanli-MacBook-Pro  ~ 

在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值