4

在我的带有 Bigsur 的新 macbook pro M1 上,每次安装系统更新时,我都必须重新安装命令行工具。启动终端并运行brew doctorhome-brew 时抱怨既没有安装 git 也没有安装命令行工具:

$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: Git could not be found in your PATH.
Homebrew uses Git for several internal functions, and some formulae use Git
checkouts instead of stable tarballs. You may want to install Git:
  brew install git

Warning: No developer tools installed.
Install the Command Line Tools:
  xcode-select --install

一旦我运行了:(xcode-select --install是的,它确实再次安装了命令行工具,因为它需要大约 5 分钟)一切都会再次运行,直到下次 OSx 更新出现在计算机重新启动时。为什么会发生这种情况?我以前从来没有遇到过这些问题?

4

0 回答 0