Every time I try npm install
. I get the following error. How do I fix it?
gyp: No Xcode or CLT version detected!
I am on n
Running xcode-select --install
attempts an install, but fails with the following error: Can't install the software because it is not currently available from the Software Update server.
Here's what worked for me.
OS: Catalina 10.15.6
Xcode-select version: 2373
NOTE: Before running all this, I already had xcode-select version 2373 installed. But removing and reinstalling fixed the issue.
sudo rm -rf $(xcode-select -print-path)
Go to the app store, and download XCode.
Open XCode. On initial load, it will update/install stuff. let this happen.
From Apple Developers, manually download Command Line Tools for Xcode 12
Install the CLT for Xcode 12 package.
You should now be good to go.