nvm icon indicating copy to clipboard operation
nvm copied to clipboard

xcrun: error: invalid active developer path

Open itsajungle22 opened this issue 3 years ago • 1 comments

Operating system and version:

OSX 12.2.1

nvm debug output:


nvm ls output:


How did you install nvm?

Terminal code

What steps did you perform? input "curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash" into terminal

What happened? xcrun: 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! ** Computer Name **:~ User Name

What did you expect to happen? to instal NVM

Is there anything in any of your profile files that modifies the PATH?

If you are having installation issues, or getting "N/A", what does curl -I --compressed -v https://nodejs.org/dist/ print out?


itsajungle22 avatar Mar 19 '22 19:03 itsajungle22

Have you installed the xcode command line developer tools? What happens if you run curl or git by themselves?

Also, what does which curl print out?

ljharb avatar Mar 20 '22 04:03 ljharb

Running these should do the trick:

xcode-select --install sudo xcode-select -s /Library/Developer/CommandLineTools/

I had just updated my mac to the new version and it removed the Xcode-select installation, so that should fix everything 🚀

rannyeribatista avatar Nov 02 '22 13:11 rannyeribatista

Closing until the OP responds.

ljharb avatar Nov 02 '22 15:11 ljharb