简体   繁体   English

您的要求无法解析为可安装的软件包集。 使用作曲家

[英]Your requirements could not be resolved to an installable set of packages. using composer

I have this composer require : 我有这个作曲家要求:

"require": {
    "maximebf/debugbar": "^1.13.1",
    "kriswallsmith/assetic": "^1.2",
    "symfony/translation": "^4.2",
    "symfony/yaml": "^4.2",
    "symfony/config": "^4.2",
    "symfony/routing": "^4.2",
    "symfony/http-foundation": "^4.2",
    "monolog/monolog": "^1.24",
    "leafo/scssphp": "^0.4.0",
    "ins0/google-measurement-php-client": "^2.1.0",
    "ruflin/elastica": "^6.1",
    "phpmailer/phpmailer": "^6.0",
    "mandrill/mandrill": "^1.0",
    "ezyang/htmlpurifier": "^4.10",
    "xamin/handlebars.php": "^0.10.4",
    "paypal/rest-api-sdk-php": "^1.11.0",
    "paypal/merchant-sdk-php": "^3.9.1",
    "zircote/swagger-php": "^3.0",
    "doctrine/cache": "^1.5",
    "symfony/http-kernel": "^4.2",
    "friendsofsymfony/http-cache": "^2.5.0",
    "kint-php/kint": "^3.1",
    "trello/trello": "^0.1.1",
    "giggsey/libphonenumber-for-php": "^8.8",
    "phpoffice/phpspreadsheet": "^1.6",
    "duccio/apns-php": "^1.0",
    "sentry/sentry": "^2.0.0",
    "symfony/console": "^4.2",
    "guzzlehttp/guzzle": "^6.3",
    "dompdf/dompdf": "^0.8.1",
    "mobiledetect/mobiledetectlib": "^2.8",
    "mpdf/mpdf": "^7.0",
    "ext-mysqli": "*"
  },

And I have the error : 我有错误:

Problem 1
    - Conclusion: remove php-http/httplug v2.0.0
    - Installation request for friendsofsymfony/http-cache ^2.5.0 -> satisfiable by friendsofsymfony/http-cache[2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4].
    - sentry/sentry 2.0.0 requires php-http/async-client-implementation ^1.0 -> satisfiable by php-http/guzzle6-adapter[v2.0.1].
    - sentry/sentry 2.0.0 requires php-http/async-client-implementation ^1.0 -> satisfiable by php-http/guzzle6-adapter[v2.0.1].
    - php-http/guzzle6-adapter v2.0.1 requires php-http/httplug ^2.0 -> satisfiable by php-http/httplug[v2.0.0].
    - Conclusion: don't install php-http/httplug v2.0.0
    - Installation request for sentry/sentry ^2.0.0 -> satisfiable by sentry/sentry[2.0.0].

The thing I don't know why do I get this error, knowing that the line that generates the error is : 我不知道为什么我会得到这个错误,知道生成错误的行是:

"friendsofsymfony/http-cache": "^2.5.0",

As when I remove it everything works correctly. 当我删除它时一切正常。 Any idea why wouldn't composer want to install this package using my current configuration? 知道为什么作曲家不想使用我当前的配置来安装这个软件包?

EDIT : 编辑:

Previous working state of my require before updating to newer versions : 在更新到更新版本之前,我的先前工作状态需要:

  "require": {
    "maximebf/debugbar": "1.13.1",
    "kriswallsmith/assetic": "1.2.*",
    "symfony/translation": "2.6.11",
    "symfony/yaml": "2.6.11",
    "symfony/config": "2.6",
    "symfony/routing": "2.6",
    "symfony/http-foundation": "2.6",
    "monolog/monolog": "^1.17",
    "leafo/scssphp": "0.4.0",
    "ins0/google-measurement-php-client": "2.1.0",
    "ruflin/elastica": "2.3",
    "phpmailer/phpmailer": "^5.2",
    "mandrill/mandrill": "^1.0",
    "ezyang/htmlpurifier": "4.8.*",
    "xamin/handlebars.php": "^0.10.4",
    "paypal/rest-api-sdk-php": "1.11.0",
    "paypal/merchant-sdk-php": "3.9.1",
    "zircote/swagger-php": "^1.0",
    "doctrine/cache": "^1.5",
    "symfony/http-kernel": "^2.6",
    "friendsofsymfony/http-cache": "^1.4",
    "kint-php/kint": "^2.1",
    "trello/trello": "^0.1.1",
    "giggsey/libphonenumber-for-php": "^8.8",
    "phpoffice/phpexcel": "^1.8",
    "duccio/apns-php": "^1.0",
    "sentry/sentry": "^1.8",
    "symfony/console": "^2.6",
    "guzzle/guzzle": "~3.9",
    "dompdf/dompdf": "^0.8.1",
    "mobiledetect/mobiledetectlib": "^2.8",
    "mpdf/mpdf": "^6.0",
    "ext-mysqli": "*"
  },

If I run your code from clean slate I get a different and more clear problem: 如果我从干净的平板运行你的代码,我得到一个不同的,更明确的问题:

  Problem 1
    - Installation request for sentry/sentry ^2.0.0 -> satisfiable by sentry/sentry[2.0.0].
    - sentry/sentry 2.0.0 requires php-http/async-client-implementation ^1.0 -> no matching package found.
  Problem 2
    - friendsofsymfony/http-cache 2.5.4 requires php-http/client-implementation ^1.0.0 -> no matching package found.
    - friendsofsymfony/http-cache 2.5.3 requires php-http/client-implementation ^1.0.0 -> no matching package found.
    - friendsofsymfony/http-cache 2.5.2 requires php-http/client-implementation ^1.0.0 -> no matching package found.
    - friendsofsymfony/http-cache 2.5.1 requires php-http/client-implementation ^1.0.0 -> no matching package found.
    - friendsofsymfony/http-cache 2.5.0 requires php-http/client-implementation ^1.0.0 -> no matching package found.
    - Installation request for friendsofsymfony/http-cache ^2.5.0 -> satisfiable
by friendsofsymfony/http-cache[2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4].

Your dependencies seem to need something that provides php-http/ stuff, which are virtual packages, possibly provided by different libs. 您的依赖项似乎需要提供php-http/ stuff的东西,它们是虚拟包,可能由不同的lib提供。

You might have had something that provides it and removed it or trying to remove it on this update? 您可能有某些东西提供它并将其删除或尝试在此更新中删除它? Hard to guess. 很难猜到。

I would recommend to erase the composer.lock and start from scratch. 我建议擦除composer.lock并从头开始。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Composer安装失败“无法将要求解决为一组可安装的软件包。” - Composer installation failed “requirements could not be resolved to an installable set of packages.” 您的要求无法解决为一组可安装的软件包。 用于运行应用程序 - Your requirements could not be resolved to an installable set of packages. for running an application 错误:无法将您的要求解析为一组可安装的软件包。 Laravel - Error: Your requirements could not be resolved to an installable set of packages. Laravel 当我运行作曲家更新时,我得到“您的要求无法解决为一组可安装的软件包。” - I get “Your requirements could not be resolved to an installable set of packages.” when I run composer update Composer 安装:无法将您的要求解析为一组可安装的软件包。 symfony/css 选择器 - Composer Install : Your requirements could not be resolved to an installable set of packages. symfony/css-selector 无法将您的要求解析为一组可安装的软件包。 - Laravel 5.7 - Your requirements could not be resolved to an installable set of packages. - Laravel 5.7 您的要求无法解决为一组可安装的软件包。 - Symfony 项目 - Your requirements could not be resolved to an installable set of packages. - Symfony Project composer requireIllumination/support 会给出一个错误,例如“您的需求无法解析为一组可安装的软件包”。 - composer require illuminate/support gives an error like “Your requirements could not be resolved to an installable set of packages.” Laravel安装“您的要求无法解决为一组可安装的软件包。” - Laravel Installation “ Your requirements could not be resolved to an installable set of packages.” 您的要求无法解决为一组可安装的软件包。 (Laravel) - Your requirements could not be resolved to an installable set of packages. (Laravel)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM