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
On catalina i did the following:
xcode-select --print-path
sudo rm -rf /Library/Developer/CommandLineTools
And since install command doesnt work, I had to download it from: https://developer.apple.com/download/more/
From there install:
XCode 12
Command Line Tools for XCode 12
Post that removed existing node_modules and reinstalled through npm install
. It worked.