我最近通过终端安装了Homebrew,但是当我尝试使用它来安装其他程序时会出现一些错误。
当我尝试安装pyenv时,这是一个示例情况。
brew install pyenv这是上面命令的输出:
Running `brew update --preinstall`...
Warning: No available formula with the name "ca-certificates".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
Error:
homebrew-cask is a shallow clone.
To `brew update`, first run:
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask 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!
Error: pyenv: undefined method `cellar' for #<BottleSpecification:0x00007fd7720b4360>发布于 2022-01-10 09:46:56
我也有同样的问题。
解决了我在macOS蒙特利12.1上的问题的是调查brew doctor的问题,然后按照建议的输出来做。
brew doctor的输出告诉我,没有正确地使用homebrew/homebrew core,并推荐了以下命令:
rm -rf "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core"
brew tap homebrew/core然后我继续使用Pyenv安装过程,一切都成功了。
https://stackoverflow.com/questions/70583637
复制相似问题