3

I think there is some issue with xcode and command line tools. I keep getting The "make" command requires the command line tools. Would you like to install the tools now?. I click "Install" let it install and then again i get the same popup asking to install again.

I see that tools are already available at /Library/Developer/CommandLineToolsenter image description here.

This keeps getting triggered when I try to install npm dependencies of a project which has some subdependency that needs to be compiled with make triggering this.

How can I fix this?

I have seen similar questions being asked before:

None of them seem to work

Meet
  • 131
  • 3

1 Answers1

5

Try running xcodebuild -runFirstLaunch, that solved the issue for me.


I was running into the same problem and found this question in my quest for answers. I found this message amongst the error output from my cli invocation:

Please ensure Xcode packages are up-to-date — try running 'xcodebuild -runFirstLaunch'.