Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun Failed to clone nvm repo

**

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash

**

When I run this code on my Mac I got an error

crun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun Failed to clone nvm repo. Please report this!

How to fix this?

like image 534
arpan45 Avatar asked Oct 09 '19 16:10

arpan45


2 Answers

I solved this problem by opening the Terminal and running the command:

xcode-select --install
like image 151
rantonio Avatar answered Sep 27 '22 22:09

rantonio


I fixed this problem by reinstalling Xcode.

like image 41
arpan45 Avatar answered Sep 27 '22 20:09

arpan45