错误
brew install cmakeWarning: Treating cmake as a formula. For the cask, use homebrew/cask/cmakeWarning: You are using macOS 12.We do not provide support for this pre-release version.You will encounter build failures with some formulae.Please create pull requests instead of asking for help on Homebrew's GitHub,Twitter or any other official channels. You are responsible for resolvingany issues you experience while you are running thispre-release version.Error: cmake: no bottle available!You can try to install from source with: brew install --build-from-source cmakePlease note building from source is unsupported. You will encounter buildfailures with some formulae. If you experience any issues please create pullrequests instead of asking for help on Homebrew's GitHub, Twitter or any otherofficial channels.
->brew updatecat: /usr/local/Homebrew/.git/TMP_FETCH_FAILURES: No such file or directoryError: Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask-fonts failed!Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core failed!Fetching /usr/local/Homebrew failed!Fetching /usr/local/Homebrew/Library/Taps/mongodb/homebrew-brew failed!Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask failed!
解决办法一:
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.zshrcsource ~/.zshrcbrew update
解决办法二:
brew update-reset && source ~/.zshrcbrew update