composer require(install.update) Failed to execute git clone --mirror ;remote: HTTP Basic: Access。

博客记录了Git克隆仓库时出现认证失败的问题,报错显示远程HTTP Basic访问被拒、认证失败。给出的解决办法是查看自己的gitlab账号密码,查看composer认证密码,然后将两者密码改为一致。
                                                                                                                 **composer require(install.update)  项目出现下面问题** 

[RuntimeException]
Failed to execute git clone --mirror ‘https://xxx:***@xxx/xapp/backend/xinxin-vendor/community.git’ ‘/Users/xxx/.composer/cache/vcs/https
—code.xx.cn-xx-app-backend-xx-vendor-xx.git/’

Cloning into bare repository ‘/Users/xx/.composer/cache/vcs/https—code.xx.cn-xinxin-app-backend-xx-vendor-xx.git’…
remote: HTTP Basic: Access denied
fatal: Authentication failed for ‘https://code.xx.cn/xinxin_app/backend/xx-vendor/xx.git/’

我的解决发放
1,查看自己的gitlab账号密码
2,查看自己的composer 认证密码 cat ~/.composer/auth.json
3, 把密码改为一样

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值