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

1
2
3
4
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.

开始解决:

1
2
3
4
5
6
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 ,显示成功! 再次运行原来的安装命令,成功!