Just a quick note to everyone jumping on the new macOS Mojave release.
I’m a big fan of Homebrew, and after upgrading macOS I figured it would be a good idea to upgrade Homebrew as well.
~ $ brew update ==> Downloading https://homebrew.bintray.com/bottles/git-2.18.0.mojave.bottle.ta ... ==> Summary 🍺 /usr/local/Cellar/git/2.18.0: 1,488 files, 296.7MB Error: Git must be installed and in your PATH!
Well, that’s strange, Homebrew was working just fine before the upgrade.
Turns out that the Mojave upgrade didn’t also upgrade my Xcode Command Line tools, which causes this error when upgrading Homebrew.
Luckily there is a really quick fix for this; just install the Xcode command line tools!
~ $ xcode-select --install xcode-select: note: install requested for command line developer tools
Let that run, and Homebrew upgrades itself without problems.
~ $ brew update Updated 2 taps (homebrew/core, homebrew/cask).
I’m expecting some other upgrades to Homebrew in soonish, since it still considers Mojave (macOS 10.14) to be a pre-release version so official support isn’t quite there yet.