执行brew list命令报错

报错信息如下:

Error: Checksum mismatch.

Expected: b065e5e3783954f3e65d8d3a6377ca51649bfcfa21b356b0dd70490f74c6bd86

  Actual: 324d9ed6ec5aec3b22784ba7812dcc081dcb5c1d2a65843526dff7450c3242e0

 Archive: /Users/niu11g/Library/Caches/Homebrew/portable-ruby-2.6.3_2.yosemite.bottle.tar.gz

To retry an incomplete download, remove the file above.

原因:下载的文件和期望的hashCode对不上,删掉对应的文件就行了

解决方法:使用rm /Users/niu11g/Library/Caches/Homebrew/portable-ruby-2.6.3_2.yosemite.bottle.tar.gz 删除此文件

重新执行brew安装脚本

posted @ 2020-12-24 23:31  妞小唛  阅读(762)  评论(0编辑  收藏  举报