66
18

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

CatalinaでHomebrewのbrew updateがイカれたので対処した

Last updated at Posted at 2020-12-08

環境

  • MacBook Pro (16-inch, 2019)

  • macOS Catalina 10.15.7

エラーの内容

突然以下のエラーが出て,Homebrewのアップデートができなくなった.

$ brew update
  Error: homebrew-cask is a shallow clone. To `brew update` first run:
    git -C "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask" fetch --unshallow

対処法

以下をターミナルで入力しただけ.

$ brew untap homebrew/cask
$ brew tap homebrew/cask

結果

$ brew update
$ brew upgrade

どちらも無事にできるようになった.

ちなみに

$ git -C "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask" fetch --unshallow

を入力しても直らなかったので今回の方法を試した.

参考

66
18
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
66
18

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?