Search code examples
node.jsxcodemacos-catalinanode-gyp

How to fix node gyp error caused by new macos catalina update


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?


Solution

  • 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