Skip to content

Instantly share code, notes, and snippets.

@sander3
Last active April 24, 2020 09:18
Show Gist options
  • Save sander3/f828b812ea101d90c1c31e336a14c738 to your computer and use it in GitHub Desktop.
Save sander3/f828b812ea101d90c1c31e336a14c738 to your computer and use it in GitHub Desktop.
gyp: No Xcode or CLT version detected!

Problem

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"

Solution

sudo rm -R -f $(xcode-select --print-path)

xcode-select --install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment