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

  • How did you install the CLT? Jul 20, 2021 at 14:37
  • Installed Xcode 12.5.1, Xcode beta 13, also uninstalled them both and just installed command line tools using xcode-select --install
    – Meet
    Jul 21, 2021 at 3:35

1 Answer 1


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'.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .