gyp no xcode or clt version detected
On a fresh update of MacOS, an error may occur:
1gyp: No Xcode or CLT version detected!
2gyp ERR! configure error
Solution 1: Reset xcode
Try simply running the following command:
1sudo xcode-select --reset
Solution 2: Reinstall xcode
If the prior solution does not work, a complete reinstall of xcode may be necessary.
- Find the xcode path:
1xcode-select --print-path
- Delete the xcode directory
1sudo rm -rf <result from last command>
- Install xcode
1xcode-select --install