源码教程 2025年06月7日
0 收藏 0 点赞 144 浏览 664 个字
摘要 :

今天有同学反馈在安装composer后,在创建项目的时候出现了Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private repo……

今天有同学反馈在安装composer后,在创建项目的时候出现了Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private repos错误,其实这个办法很简单,仔细看报错就知道,大概意思就是github的ssh密匙认证错误,需要去github上生成对应的秘钥文件,地址为:https://github.com/settings/tokens/new?scopes=&description=Composer+on+JSSM-20231021MK+2024-01-17+0948替换C:/Users/Administrator/AppData/Roaming/Composer/auth.json中的内容即可。

Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private repos解决办法

根据提示重新生成token然后放到auth.json文件里(文件须有写入的权限)

    "github-oauth": {

        "github.com": "这里填token"},

  保存就可以了。

  也可以用第二种方法:composer config –global –auth github-oauth.github.com token系列号

You can also add it manually later by using "composer config –global –auth github-oauth.github.com <token>"

  看看auth.json文件是不是变了

  再看看composer安装是不是已经可以了

微信扫一扫

支付宝扫一扫

版权: 转载请注明出处:https://www.zuozi.net/1883.html

管理员

相关推荐
2025-07-05

对于一些使用WordPress进行外贸建站的商家来说,大部分人会通过在WordPress中添加JS代码和CSS样式表…

701
2025-07-05

当商家遇到WordPress独立站改版或者域名到期等问题时,不免会涉及到WordPress域名的更改,那么这一…

715
2025-07-05

用户在使用WooCommerce进行跨境电商独立站搭建工作时,有可能会借助WooCommerce短代码实现更加醒目…

307
2025-07-05

随着外贸建站行业的不断深入发展,WordPress的多语言功能也显得越来越重要,一个具有多语言的独立站…

1,039
2025-07-05

WooCommerce作为WordPress外贸建站生态的一部分,WooCommerce运费设置是商家在建站过程中不可忽视的…

835
2025-07-05

在外贸建站的过程中,有些商家会选择使用WordPress幻灯片为网站页面增加一定的动感和可观性,进而提…

723
发表评论
暂无评论

还没有评论呢,快来抢沙发~

助力内容变现

将您的收入提升到一个新的水平

点击联系客服

在线时间:08:00-23:00

客服QQ

122325244

客服电话

400-888-8888

客服邮箱

122325244@qq.com

扫描二维码

关注微信客服号