HomeBrew 安装软件提示 Error: Your CLT does not support macOS 11.0.


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

参考:https://www.v2ex.com/t/725768


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM