composer错误提示Cloning failed using an ssh key for authentication, enter your GitHub credentials的解决方法

18 篇文章 2 订阅
18 篇文章 0 订阅

composer install 报错Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private repos

执行composer install 报错

$ composer install                 
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 53 installs, 0 updates, 0 removals
  - Installing bower-asset/jquery (3.5.1): Downloading (failed)       
Downloading (failed)       
Downloading (failed)    Failed to download bower-asset/jquery from dist: The "https://api.github.com/repos/jquery/jquery-dist/zipball/4c0e4becb8263bb5b3e6dadc448d8e7305ef8215" file could not be downloaded: failed to open stream: Connection reset by peer
    Now trying to download from source
  - Installing bower-asset/jquery (3.5.1): Cloning 4c0e4becb8
Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private repos
Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+qipa50+2020-09-15+0332
to retrieve a token. It will be stored in "/root/.config/composer/auth.json" for future use by Composer.
Token (hidden): 

在这里插入图片描述

首先到https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+qipa50+2020-09-15+0332这个地址重新生成一下token,点击Generate token,复制生成的token

在这里插入图片描述

在这里插入图片描述粘贴入token,提示 Token stored successfully.
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值