我正试图在我的symfony应用程序上安装重置密码功能。
问题是作曲家告诉我:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- php is present at version 8.1.0 and cannot be modified by Composer
- symfonycasts/reset-password-bundle v1.16.0 conflicts with php >=8.1 <8.1.10.
- Root composer.json requires symfonycasts/reset-password-bundle ^1.16 -> satisfiable
by symfonycasts/reset-password-bundle[v1.16.0-password-bundle[v1.16.0].
You can also try re-running composer require with an explicit version constraint,
e.g. "composer require symfonycasts/reset-password-buycasts/reset-password-bundle:*"
to figure out if any version is installable, or "composer require symfonycasts/e-paif
you know which yondle:*" to figure out if any version is installable, or
"composerreset-password-bundle:^2.1" if you know which you need.安装失败,将./comer.json和./composer.lock恢复到它们的原始内容。
那么,我需要安装一个特定的版本吗?
发布于 2022-10-24 06:46:09
如果您查看重置密码包的composer.json,可以看到与PHP8.1.0、8.1.1、. 8.1.10版本有冲突。
"conflict": {
"php": ">=8.1 <8.1.10",
"doctrine/orm": "<2.7"
},所以,是的,您必须将堆栈升级到PHP版本8.1.11
此拉请求给出了为什么这个包目前与这些版本不再兼容的原因。
https://stackoverflow.com/questions/74149480
复制相似问题