You might encounter the following error between Yarn upgrades using Brew on macOS:
"gyp: No Xcode or CLT version detected!"
Normally you'd easily resolve this issue by installing Xcode command line tools. If you stumble upon the following message after an installation attempt, use the solution below.
"xcode-select: error: command line tools are already installed, use "Software Update" to install updates"
sudo rm -R -f $(xcode-select --print-path)