MacBook-Pro:~ mac$ brew install nvm==> Upgrading 1 outdated package, with result:nvm 0.33.9 -> 0.33.10==> Upgrading nvm xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrunError: Failure while executing: git config --local --replace-all homebrew.private true
原因是缺少 xcode 插件引起的。
解决方法
直接在终端Terminal输入
xcode-select --install