mac 试用 brew 安装 MongoDB 时,出现如下提示:
MacBook-Pro :: ~ ? brew install mongodb-community@4.4
Error: Your CLT does not support macOS 11.0.
It is either outdated or was modified.
Please update your CLT or delete it if no updates are available.
Error: An exception occurred within a child process:
SystemExit: exit
解决方法为,手动移除 CommandLineTools,然后重新安装(要安装xcode):
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
执行成功后可以通过如下命令查询版本:
xcodebuild -version
HomeBrew 安装软件提示 Error: Your CLT does not support macOS 11.0.