由于我的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一下试试,已经可以使用了