今天通过brew想去搜索某个包,比如:
brew search mysql
结果直接报错如下:
Warning: Unexpected method 'arch' called on Cask portfolioperformance.
Follow the instructions here:
https://github.com/Homebrew/homebrew-cask#reporting-bugs
Error: Cask 'portfolioperformance' definition is invalid: invalid 'sha256' value: {:arm=>"31a13f0c9b9acb53a92e6c802a08d249208944ed9ec16c153667a192caa1cb4d", :intel=>"6843f29ebf2c141c6063955014d6759ad17b366844352de19e345b60d59ccd9f"}
解决方案非常简单:
执行update即可
brew update
更新完成后再次执行搜索命令没问题了,不知道是不是我电脑系统升级导致。