snovaのブログ

主にプログラミングやデジタルコンテンツについて書きます。最近はPython, Flutter, VRに興味があります。

Homebrewのアップデートのエラーが出たときの対応法

備忘録です。

エラーの内容

macOSをアップデート後、homebrewのアップデートを行うと、以下のようなエラーが出る

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Error: An exception occurred within a child process:

解決法

xcode-select --installを実行して、xcode-selectをインストールする

参考文献

macOS Mojave/High Sierra でエラー invalid active developer path が発生したので直した

Google Play and the Google Play logo are trademarks of Google LLC.