gpt4 book ai didi

git - composer require package_name requested for api/v3 而不是 gitlab 上的 api/v4

转载 作者:行者123 更新时间:2023-12-04 01:35:06 25 4
gpt4 key购买 nike

当我想要一个包with composer时,它会返回一条错误信息:

Composer 需要 Bugloos/file-manager-bundle:1.0.6

Installation failed, reverting ./composer.json to its original content.                                                                                   
[Composer\Downloader\TransportException]
The "https://gitlab.com/api/v3/projects/bugloos%2Flogin%2Dbundle" file could not be downloaded (HTTP/1.1 410 Gone)

但是如果我点击带有 v4 版本的链接,gitlab 将返回正确的响应,我不知道如何告诉 gitlab 以 v4 版本响应我?

"repositories": [
{
"type": "vcs",
"url": "git@gitlab.com:bugloos/login-bundle.git"
},

...

"require": {
"Bugloos/LoginBundle": "^1.0", ...

...

enter image description here

最佳答案

两年前 Composer 中的这个 was fixed。您需要更新 Composer :

composer self-update

如果全局安装了 composer,则使用 sudo:

sudo -H composer self-update

关于git - composer require package_name requested for api/v3 而不是 gitlab 上的 api/v4,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59841195/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com