gpt4 book ai didi

php - Composer 安装/更新失败

转载 作者:可可西里 更新时间:2023-11-01 12:19:18 24 4
gpt4 key购买 nike

我在安装我创建的包时遇到问题....

https://packagist.org/packages/mardy-git/redirect

据我所知,一切正常,我应该能够安装它。但是,当我运行 composer install 或 update 时,我收到以下错误消息...

Your requirements could not be resolved to an installable set of packages.Problem 1 - The requested package mardy-git/redirect could not be found in any version, there may be a typo in the package name.Potential causes: - A typo in the package name - The package is not available in a stable-enough version according to your minimum-stability setting   see  for more details.Read  for further common problems.

And in my composer.json file I have:

{
"require": {
"php": ">=5.4",
"orno/di": "1.*",
"orno/http": "1.*",
"orno/mvc": "dev-master",
"orno/loader": "1.*",
"orno/db": "1.*",
"filp/whoops": "1.0.*",
"symfony/console": "2.3.*@dev",
"zendframework/zendframework": "2.1.*",
"form-manager/form-manager": "dev-master",
"mardy-git/hmac": "0.1.*@dev",
"mardy-git/redirect": "dev-master"
}
}

这是我今天下午创建的一个全新的包,我以前没有遇到过这样的问题,所以我不知道从哪里开始寻找解决方案。如果我删除 mardy-git/redirect 行,其他所有内容都会按预期安装。

我已经尝试过 Composer self 更新,但没有任何区别。

附加信息:

composer show mardy-git/redirect --verbose

...导致以下响应:

[InvalidArgumentException]  Package mardy-git/redirect not foundException trace: () at phar:///usr/local/bin/composer/src/Composer/Command/ShowCommand.php:105 Composer\Command\ShowCommand->execute() at phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:244 Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:882 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:212 Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:117 Composer\Console\Application->doRun() at phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:119 Symfony\Component\Console\Application->run() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:83 Composer\Console\Application->run() at phar:///usr/local/bin/composer/bin/composer:43 require() at /usr/local/bin/composer:15

更多信息,仅使用 Composer 文件中的 "mardy-git/redirect": "dev-master" 进行测试。

Composer 安装-vvv

产生以下响应:

Downloading composer.jsonLoading composer repositories with package informationDownloading https://packagist.org/packages.jsonWriting /Users/mbard/.composer/cache/repo/https---packagist.org/packages.json into cacheReading /Users/mbard/.composer/cache/repo/https---packagist.org/p-provider-active.json from cacheReading /Users/mbard/.composer/cache/repo/https---packagist.org/p-provider-archived.json from cacheReading /Users/mbard/.composer/cache/repo/https---packagist.org/p-provider-latest.json from cacheReading /Users/mbard/.composer/cache/repo/https---packagist.org/p-provider-stale.json from cacheInstalling dependencies (including require-dev)Your requirements could not be resolved to an installable set of packages.Problem 1 - The requested package mardy-git/redirect could not be found in any version, there may be a typo in the package name.Potential causes: - A typo in the package name - The package is not available in a stable-enough version according to your minimum-stability setting   see  for more details.Read  for further common problems.

有人知道为什么要这样做吗?

最佳答案

Packagist 正在中断。 https://twitter.com/PrincipeBorodin/status/342655643603324929

您所能做的就是尝试联系@packagist 或 packagist.org 上的联系我们页面

我在我的一个项目中看到了完全相同的情况。如果你去 https://packagist.org/packages/base-reality/php-to-javascript可以看到最新版本是0.1.17

但是这样做:

composer show base-reality/php-to-javascript

给予

versions : dev-master, * 0.1.16, 0.1.15, 0.1.14, 0.1.13, 0.1.12, 0.1.11, 0.1.10, 0.1.9, 0.1.8, 0.1.7, 0.1.6, 0.1.5, 0.1.4, 0.1.3, 0.1.2, 0.1.1, 0.1.0, 0.0.9, 0.0.8, 0.0.7, 0.0.6, 0.0.5, 0.0.4, 0.0.3, 0.0.2, 0.0.1

即0.1.17 版本无法通过 composer 获得。

更新

现在已经修复了https://twitter.com/packagist/status/342710331547729920

关于php - Composer 安装/更新失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16964475/

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