How to fix gyp: No Xcode or CLT version detected

xcode-select -print-path
/Library/Developer/CommandLineTools
sudo rm -rf /Library/Developer/CommandLineTools
xcode-select --install