安装mangoDB出现了这个错误,
终于被找到了
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Error: Failure while executing; `git config --local --replace-all homebrew.private true` exited with 1.
解决方案:
xcode-select --install
在终端输入这个,把xcode的一个模块安装上去就解决了。
再执行
brew install mongodb
就?了