Found this gem on medium
Can help with problems like:
gyp: No Xcode or CLT version detected!
gyp ERR! configure error
TL;DR
Check where (and if) the command line tools are installed
$ xcode-select --print-path
/Library/Developer/CommandLineTools
Delete and re-install:
$ sudo rm -r -f /Library/Developer/CommandLineTools
$ xcode-select --install