命令行工具不起作用 - OS X El Capitan、Sierra、High Sierra、Mojave [英] Command Line Tools not working - OS X El Capitan, Sierra, High Sierra, Mojave
本文介绍了命令行工具不起作用 - OS X El Capitan、Sierra、High Sierra、Mojave的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚刚从优胜美地升级到 El Capitan(并复制了从 El Capitan 升级到 Sierra 的问题),当我尝试在终端中输入例如 git status
时,我收到以下错误:
I just upgraded from Yosemite to El Capitan (and replicated the problem upgrading from El Capitan to Sierra), and when I try to type for example git status
inside a terminal, I get the following error:
xcrun: error: invalid active developer path
(/Library/Developer/CommandLineTools), missing xcrun at:
/Library/Developer/CommandLineTools/usr/bin/xcrun
我没有安装 Xcode,从来没有安装过.有人有解决办法吗?
I don't have Xcode installed, never did. Anyone have a solution?
推荐答案
找到问题的修复 此处.
xcode-select --install
这将提示安装必要的命令行工具.
This will bring up a prompt to install the necessary command line tools.
这篇关于命令行工具不起作用 - OS X El Capitan、Sierra、High Sierra、Mojave的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文