I updated my mac's os to catalina 10.15.4
after that node-gyp started to complain saying
gyp: No Xcode or CLT version detected!
How do I fix this?
I am not sure what has happened But I did following and it started working back again
Remove command line tools
sudo rm -r -f /Library/Developer/CommandLineTools
Then reinstall
xcode-select --install
Hope this helps everyone who has faced the same issue as me