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

3

24

**

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?

Guerrilla answered 9/10, 2019 at 16:41 Comment(0)
G
6

I fixed this problem by reinstalling Xcode.

Guerrilla answered 10/10, 2019 at 17:46 Comment(0)
S
68

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

xcode-select --install
Stamp answered 13/10, 2019 at 6:24 Comment(0)
G
6

I fixed this problem by reinstalling Xcode.

Guerrilla answered 10/10, 2019 at 17:46 Comment(0)
O
2

Open xcode and goto preferences>Locations. Make sure Command Line Tools is installed.

This seems to have corrected my issue (described for others who get it). I have xcode installed and got a similar error when attempting to install a python3 lib psutil (python3 -m pip install psutil) on my Apple M1(mac silicon) Monterey:

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

error: command '/usr/bin/clang' failed with exit code 1

Ornithopter answered 19/12, 2021 at 20:18 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.