我在安装我创建的软件包时出现问题....
https://packagist.org/packages/mardy-git/redirect
据我所知,一切正常,我应该可以安装它。但是,当我运行作曲家安装或更新时,我收到以下错误消息...
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.
在我的composer.json文件中,我有:
{
"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 show mardy-git/redirect --verbose
...导致以下回复:
[InvalidArgumentException] Package mardy-git/redirect not found Exception 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
更多信息,仅在作曲家文件中使用"mardy-git/redirect": "dev-master"
进行测试。
composer install -vvv
导致以下回复:
Downloading composer.json Loading composer repositories with package information Downloading https://packagist.org/packages.json Writing /Users/mbard/.composer/cache/repo/https---packagist.org/packages.json into cache Reading /Users/mbard/.composer/cache/repo/https---packagist.org/p-provider-active.json from cache Reading /Users/mbard/.composer/cache/repo/https---packagist.org/p-provider-archived.json from cache Reading /Users/mbard/.composer/cache/repo/https---packagist.org/p-provider-latest.json from cache Reading /Users/mbard/.composer/cache/repo/https---packagist.org/p-provider-stale.json from cache Installing 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.
有没有人有任何想法为什么这样做?
答案 0 :(得分:7)
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.117版本不能通过作曲家获得。
<强>更新强>
现在已修复https://twitter.com/packagist/status/342710331547729920
答案 1 :(得分:-2)
我遇到了同样的问题,而本周早些时候我创建了一个新包,一切都很顺利。
我发现了这篇关于它的旧帖子:https://github.com/composer/composer/issues/1090,但不幸的是它没有给出解决方案。
一些包含大量替换/建议/需求的包在包转储器(以及索引器和其他所有内容)中触发了内存问题
编辑:问题现在似乎已经解决了。