Mac OS brew update core_tap NilClass 错误

最近在更新 homebrew 的时候,总是遇到下面的错误:

1
2
3
4
5
6
» brew update
Updated 2 taps (homebrew/core and homebrew/cask).
==> Updated Formulae
.........
.........
Error: undefined method `core_tap?' for nil:NilClass

更新总是会失败。

网上查了一下,执行即可

1
2
3
4
5
6
» brew update --force
Updated 1 tap (homebrew/cask).
No changes to formulae.
[I] [ 0 ]:[ 2019-08-18 00:08:48 ] MoMo in ~/go
» brew update
Already up-to-date.
Just for my love !!