brewan安装失败Error: Invalid formula:

问题原因:

Error: Invalid formula: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/openjdk.rb

openjdk: undefined local variable or method `version' for #<Livecheck:0x00007f81c3905190>

Error: Invalid formula: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/python@3.9.rb

python@3.9: undefined method `on_macos' for #<PourBottleCheck:0x00007f81cd5b0968>

Error: Cannot tap homebrew/core: invalid syntax in tap!

Error: Failure while executing; `/usr/local/bin/brew tap homebrew/core` exited with 1.

解决方案:

cd /usr/local/Homebrew/Library/Taps/mkdir homebrewcd homebrew

git clone https://mirrors.ustc.edu.cn/homebrew-core.git

brew update

brew update

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容