MacOS version: 10.15.3 Catalina
Node: 12.x LTS
If you got this node gyp
error, then here will be you solution.
gyp: No Xcode or CLT version detected!
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
Reinstall xcode-select
in terminal
## Install Xcode
sudo rm -rf $(xcode-select -print-path)
xcode-select --install
# Verify
/usr/sbin/pkgutil --packages | grep CL
## Return
com.apple.pkg.CLTools_Executables
com.apple.pkg.CLTools_SDK_macOS110
com.apple.pkg.CLTools_SDK_macOS1015
com.apple.pkg.CLTools_macOS_SDK
// Optional
sudo npm install -g node-gyp