Search code examples
curlterminalnvmxcrun

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?


Solution

  • I fixed this problem by reinstalling Xcode.