Skip to content

Instantly share code, notes, and snippets.

@mariusbutuc
Last active June 3, 2020 19:30
Show Gist options
  • Save mariusbutuc/60456e3e56e034e4b41edf634b9bdd7f to your computer and use it in GitHub Desktop.
Save mariusbutuc/60456e3e56e034e4b41edf634b9bdd7f to your computer and use it in GitHub Desktop.
Fix "No Xcode or CLT version detected!"
# > node-gyp rebuild
#
# No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
#
# No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.
#
# No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.
#
# gyp: No Xcode or CLT version detected!
# gyp ERR! configure error
# gyp ERR! stack Error: `gyp` failed with exit code: 1
# Source: https://github.com/nodejs/node-gyp/blob/master/macOS_Catalina.md#installing-node-gyp-using-the-xcode-command-line-tools-via-xcode-select---install
sudo rm -rf {$(xcode-select -print-path),/Library/Developer/CommandLineTools}
xcode-select --install
# test
softwareupdate -l
xcode-select -version
# xcode-select version 2370+.
xcode-select -print-path
# /Library/Developer/CommandLineTools
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment