gyp: No Xcode or CLT version detected macOS

If you have recently updated your macOS, especially macOS Catalina or macOS Big Sur, you might be getting this error while doing a usual npm install. The general solution to this problem is installing the XCode. To install the XCode…