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
I guess, you may have tried multiple solutions so far but if none of those solutions have worked for you yet, don't worry - I got you. :)
Non-working Solutions:
xcode-select --install
didn't work for me (macOS Catalina 10.15.7) as it shows up a Software Update dialog box which says Can't install the software because it is currently not available from the Software Update Server
.sudo xcode-select --reset
also didn't do the trick for me.Working Solution:
Here is what worked for me i.e. reinstall Xcode Command Line Tools using Software Update manually.
softwareupdate -l
sudo touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
softwareupdate -l
again.Software Update
. Start the Software Update
.sudo rm /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
.