![](/img/trans.png)
[英]Laravel Installation “ Your requirements could not be resolved to an installable set of packages.”
[英]Symfony 6.1 - Installation of "hwi/oauth-bundle" throws "Your requirements could not be resolved to an installable set of packages."
我在 PHP 8.1 / Symfony 6.1 項目中運行以下命令:
compose require hwi/oauth-bundle
我收到以下錯誤:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- hwi/oauth-bundle[1.4.0, ..., 1.4.5] require symfony/framework-bundle ^4.4|^5.1 -> found symfony/framework-bundle[v4.4.0, ..., v4.4.46, v5.1.0, ..., v5.4.13] but it conflicts with your root composer.json require (6.1.5).
- Root composer.json requires hwi/oauth-bundle ^1.4 -> satisfiable by hwi/oauth-bundle[1.4.0, ..., 1.4.5].
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require hwi/oauth-bundle:*" to figure out if any version is installable, or "composer require hwi/oauth-bundle:^2.1" if you know which you need.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
根據問題hwi/HWIOAuthBundle#1880 ,目前還沒有對 Symfony 6 的官方支持。
Symfony 6 支持將添加到捆綁包的2.x
版中。
在發布正式的v2.x
版本之前,您可以使用以下命令安裝hwi/oauth-bundle
的2.x
beta 版本和6.x
6.x。
compose require hwi/oauth-bundle:2.0.x-dev
您可以使用 Symfony CLI 在臨時目錄中快速驗證它:
symfony new --version=6.1 /tmp/symfony-6.1
cd /tmp/symfony-6.1
composer require template
composer require hwi/oauth-bundle:2.0.x-dev
rm -rf /tmp/symfony-6.1
安裝很好。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.