brew安装软件失败
执行brew install时报错
· · ·brew install htop ==> Searching for similarly named formulae… Error: No similarly named formulae found. Error: No available formula or cask with the name "htop". ==> 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. Git thinks your core tap and Homebrew software are identical, right down to the HEAD commit. This strongly suggests that your core tap wasn't cloned completely. The easiest (and probably safest) way to fix this:
问题:brew的core tap没有被完全克隆到本地,但是Git 认为你的 core tap 和 Homebrew 软件是相同的,直到当前提交。因为每次使用brew安装前会先update,所以个人怀疑是由于某次update网络不稳定导致的。
解决这个问题的最简单(也可能是最安全)的方法:
rm -fr $(brew --repo homebrew/core) brew tap homebrew/core
完