npm install error - No Xcode or CLT version detected? npm install error - No Xcode or CLT version detected? angular angular

npm install error - No Xcode or CLT version detected?


I got this working by following the steps below:

  • Find out the path for the command line toolsxcode-select --print-path

  • Delete command line tools directory ( Directory path can be retrieved from the above step )sudo rm -rf /Library/Developer/CommandLineTools

  • Run this to re-installxcode-select --install

Post this, 'npm install' should run successfully on VS Code in MacOS bash terminal.