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