mac执行git命令报错xcrun:error:invalidactivedeveloperpath的解决办法

testway testway     2022-11-11     313

关键词:

 

报错

 git clone

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

C02M71L9F8J2:~ pub_pawf_autotest$ git clone http://git-ma.paic.com.cn/DINGXIANZHI795/auto_link.git

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

 

terminal 执行:

xcode-select --install

 

软件安装mac使用git报错(代码片段)

...;https://developer.apple.com/download/all/下载后按步骤安装终端内执行命令:sudoxcode-select--switch/Library/Developer/CommandLineTools/ 查看详情

react-native在mac上执行gradlew命令报错./gradlew:commandnotfound

这是因为react-native项目是windows上初始化,通过gitclone到mac机器上后gradlew这个文件没有可执行权限,如图:所以只需要给gradlew这个文件增加可执行权限就可以了:chmodu+xgradlew  查看详情

软件安装mac使用git报错(代码片段)

...;https://developer.apple.com/download/all/下载后按步骤安装终端内执行命令:sudoxcode-select--switch/Library/Developer/CommandLineTools/更新系统后如果使用git后出现如下错误:则按照如下方法进行:xcode-select-psudoxcode-sele 查看详情

git报错:fatal:destinationpath‘.‘alreadyexistsandisnotanemptydirectory.

...题解决方法一、删除.git文件方法一、新建目录问题今天执行gitclone命令时遇到如下报错信息:fatal:destinationpath'.'alreadyexistsandisnotanemptydirectory.解决方法一、删除.git文件正如报错信息所说的,当前目录已经存在了git工... 查看详情

git报错:fatal:destinationpath‘.‘alreadyexistsandisnotanemptydirectory.

...题解决方法一、删除.git文件方法二、新建目录问题今天执行gitclone命令时遇到如下报错信息:fatal:destinationpath'.'alreadyexistsandisnotanemptydirectory.解决方法一、删除.git文件正如报错信息所说的,当前目录已经存在了git工... 查看详情

mac打开terminal报错-bash::commandnotfound

...就说明.bash_profile中写了一个空格,被系统认为是命令来执行了。打开.bash_profile,并没有看到空格,拷贝文件内容到文本编辑器中,也没有看到空格。为了排查,打算注释掉所有命令,再一行一行放开命令,再执行source命令,看... 查看详情

idea从git上clone项目报错(代码片段)

idea从git上clone项目报错:需要git-cmd.exe执行命令1、clone没有用户密码:Clonefailed:Authenticationfailedfor“http......“执行命令gitconfig--system--unsetcredential.helper2、gitSSLcertificateproblem:unabletogetlocalissuercertificate:由于没有配置信任的... 查看详情

windows命令行下启动gitextensions,然后运行git命令报错,为啥

参考技术A将git.exe添加到环境变量path中,然后就可以在任意的目录上通过cmd执行git了。 查看详情

mac启动tomcat

...p.sh此时报错permissiondeny。需要修改文件权限为可读可写可执行,执行命令sudochmod7777./startup.sh,此时执行./startup.sh,报错执行命令sudochmod7777./catalina.sh再执行./startup.sh启动成功 查看详情

mac执行gulp报错-bash:gulp:commandnotfound

在mac系统下安装gulp,之后执行gulp报如下错误:-bash:gulp:commandnotfound 回溯安装过程发现问题如下1.执行npmroot:Applications/XAMPP/xamppfiles/htdocs/gulp/node_modules以上路径说明npm只安装到了本地目录,需要执行如下命令更改npm目录:npmconf... 查看详情

git执行push命令到远程仓库报错opensslssl_connect:ssl_error_syscallinconnectiontogithub.com:443(代码片段)

异常执行gitpushoriginmain提交本地仓库的代码到远程仓库报错:fatal:unabletoaccess'https://github.com/xxx.git/':OpenSSLSSL_connect:SSL_ERROR_SYSCALLinconnectiontogithub.com:443解决执行如下命令即可解决:gitconfig--gl 查看详情

错误记录git使用报错(git:‘switch‘isnotagitcommand.see‘git--help‘.)(代码片段)

文章目录一、报错信息二、解决方案一、报错信息执行gitswitch-cfeature1命令,创建分支,报如下错误:D:\\Git\\git-learning-course>gitswitch-cfeature1git:'switch'isnotagitcommand.See'git--help'.二、解决方案gitswitch命令是2.232.232.23版本中新... 查看详情

错误记录git使用报错(git:‘switch‘isnotagitcommand.see‘git--help‘.)(代码片段)

文章目录一、报错信息二、解决方案一、报错信息执行gitswitch-cfeature1命令,创建分支,报如下错误:D:\\Git\\git-learning-course>gitswitch-cfeature1git:'switch'isnotagitcommand.See'git--help'.二、解决方案gitswitch命令是2.232.232.23版本中新... 查看详情

错误记录git使用报错(gitbranch-a仍能查询到已经删除的远程分支)(代码片段)

...章目录一、报错信息二、解决方案一、报错信息之前已经执行gitpushorigin--deletefeature1命令,删除了feature1远程分支,删除操作成功,远程仓库中,只剩下master主分支;远程仓库分支如下图:执行gitbranch进行本地版本库分支查询,本地只有mast... 查看详情

错误记录git使用报错(gitbranch-a仍能查询到已经删除的远程分支)(代码片段)

...章目录一、报错信息二、解决方案一、报错信息之前已经执行gitpushorigin--deletefeature1命令,删除了feature1远程分支,删除操作成功,远程仓库中,只剩下master主分支;远程仓库分支如下图:执行gitbranch进行本地版本库分支查询,本地只有mast... 查看详情

git执行"gitrebase-ihead~xxx"报错:gitrebasefatal:neededasinglerevisioninvalidupst

...D~xxx"是修改git历史记录的一个很有用的命令。但是有时在执行该命令时会出现以下错误:$gitrebase–iHEAD~8fatal:Neededasinglerevisioninvalidupstream–i二、错误原因当前执行操作的点不在任何分支上,或者可能rebase后面的参数是一个... 查看详情

执行ngbuild--prod--aot命令报错

D:git**srcmainiui>ngbuild--prod--aotHash:257ab60feca43633b6f7Time:25358mschunk{0}polyfills.221420fde500aaed5079.bundle.js(polyfills)184kB{5}[initial][rendered]chunk{1}scripts.92391f7b3a5602225 查看详情

git报错解决:opensslssl_read:connectionwasreset,errno10054错误解决(代码片段)

...接超时导致的,如果再次尝试后依然报错,可以执行下面的命令。打开Git命令页面,执行git命令脚本:修改设置,解除ssl验证gitconfig--globalhttp.sslVerify"false"此时,再执行git操作即可。  查看详情