brew install * 失败,解决方法

今天mac执行 brew install realpath 时,有报错

Warning: No available formula with the name "realpath".
==> 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.

解决方法:

rm -rf /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core
brew update

且需要回到~目录下,否则还是会提示安装失败。
然后再次执行命令:brew install realpath
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_28992047/article/details/125499058