美文网首页
mac执行git报错

mac执行git报错

作者: 好酒不见 | 来源:发表于2018-11-08 17:33 被阅读0次

mac执行git相关命令都报错如下:

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), 
missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

可能原因

  • 升级了mac系统
  • 卸载相关软件

可能因为最近清理mac存储空间卸载了xcode,解决办法:

执行xcode-select --install,弹出安装窗口,并非再次安装xcode,等待约1分钟只安装依赖插件即可。

相关文章

网友评论

      本文标题:mac执行git报错

      本文链接:https://www.haomeiwen.com/subject/usowxqtx.html