Last active
June 3, 2020 19:30
-
-
Save mariusbutuc/60456e3e56e034e4b41edf634b9bdd7f to your computer and use it in GitHub Desktop.
Fix "No Xcode or CLT version detected!"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# > 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