2022-06-11  2022-06-11    127 字  1 分钟

今天早上使用brew 安装东西的时候,没有安装成功,于是我先更新了一下brew ,返回了以下信息:

Warning: No remote 'origin' in /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core, skipping update!
Warning: No remote 'origin' in /usr/local/Homebrew/Library/Taps/homebrew/homebrew-services, skipping update!
Warning: No remote 'origin' in /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask, skipping update!
Already up-to-date.

开始解决:

rm -rf "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core"
brew tap homebrew/core
rm -rf "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-services"
brew tap homebrew/services
rm -rf "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask"
brew tap homebrew/cask

再次运行brew update ,显示成功! 再次运行原来的安装命令,成功!

c5a0542a-d539-2633-199a-d18fa31825b6