今天在我更新完苹果推送的系统更新之后,打开vscode时,弹窗提示 Git无法使用
之类的信息。让我以为更新之后Git被删除了, 于是我使用 brew upgrade git
命令想看一下之前安装过的Git是否还在
使用 brew install git
命令时,报如下错误:
1
2
3
4
5
6
7
8
9
10
11
|
Warning: You are using macOS 13.
We do not provide support for this pre-release version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
pre-release version.
Error: No developer tools installed.
Install the Command Line Tools:
xcode-select --install
|
解决方法#
运行 xcode-select --install
,此命令会安装会帮助我们安装 Command Line Tools
,安装完成后即可正常使用 brew
命令了。