mac升级11.1 Big Sur 后重新安装homebrew

由于我的mac从10.14升级到11.1,升级后brew不能使用了,想卸载重新安装,但是发现原来的ruby脚本不能使用了

经过查询,现在已经用新的shell脚本来安装,安装命令如下

/bin/bash -c "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install.sh)"

我没有卸载原来的brew (因为原来的ruby卸载脚本,也不能用),所以直接运行安装脚本,

安装完成后可能会出现下面的提示:

Error:
  homebrew-core is a shallow clone.
To `brew update`, first run:
  git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
This command may take a few minutes to run due to the large size of the repository.
This restriction has been made on GitHub's request because updating shallow
clones is an extremely expensive operation due to the tree layout and traffic of
Homebrew/homebrew-core and Homebrew/homebrew-cask. We don't do this for you
automatically to avoid repeatedly performing an expensive unshallow operation in
CI systems (which should instead be fixed to not use shallow clones). Sorry for
the inconvenience!

这个时候,只需要按照提示运行

git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow

完成后,brew list一下试试,已经可以使用了

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值