美文网首页
git -version 报错

git -version 报错

作者: Leoguo小哥 | 来源:发表于2022-11-01 15:22 被阅读0次

控制台执行命令:sudo xcode-select -switch /Library/Developer/CommandLineTools

报错信息:

sh: line 1: 63627 Abort trap: 6 /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -find git 2> /dev/null

git: error: sh -c '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -find git 2> /dev/null' failed with exit code 34304: (null) (errno=Invalid argument)

xcode-select: Failed to locate 'git', requesting installation of command line developer tools.

相关文章

网友评论

      本文标题:git -version 报错

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