I'm working with several new projects per month and I have to uninstall and install xcode-select because there is no other solution to perform npm build because it always says
gyp: No Xcode or CLT version detected!
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
This is time-consuming work because I have to do this for each and every project I start. The only solution is to uninstall and install Xcode-select again and again, I found this solution from these question,
- npm install fails on node-gyp rebuild with ```gyp: No Xcode or CLT version detected!``` - xcode-select --print-path - sudo rm -r -f /Library/Developer/CommandLineTools - xcode-select --install 
But there is no solution instead of uninstalling and installing xcode-select, Anyone can help me with this to find a solution instead of uninstalling and installing xcode-select?
