loading...
Cover image for No Xcode or CLT version detected

No Xcode or CLT version detected

akositey profile image Chester Martinez ・1 min read

I recently updated to MacOS Catalina. And faced some issues when running some git and npm commands.

I cloned a repo from GitHub and tried to run

npm ci

This error appeared after running the command

No Xcode or CLT version detected

as the cover image above shows.

Now as every faithful developer, I googled the error and pointed me to StackOverflow and some other blogs.

I checked CommandLineTools path with

xcode-select -print-path

and it showed the correct path

/Library/Developer/CommandLineTools

So maybe the package was broken or some links were not created (not sure lol). So I deleted it

sudo rm -rf /Library/Developer/CommandLineTools

After deleting CommandLineTools this window prompted me
Alt Text

If the window didn't show, just run

xcode-select --install

But for some reason it didn't download and showed me an error
Alt Text

So I went to download it manually in Apple website. Use your Apple ID to sign in.
https://developer.apple.com/download/more/?=Command%20Line%20Tools

I chose the latest one which is the first entry in the table.

After downloading I just installed the package normally:
Alt Text

And everything worked back to normal after that.

Hope this helps out somebody.

Cheers!

Posted on by:

akositey profile

Chester Martinez

@akositey

web apps developer | tech and optimization

Discussion

pic
Editor guide