Установка не удалась при попытке установить slim framework. ⇐ Php
Установка не удалась при попытке установить slim framework.
It happens when I type "composer require slim/psr7" in CMD vs code terminal.
Your requirements could not be resolved to an installable set of packages. Problem 1 - slim/psr7[0.1.0, ..., 0.6] require php ^7.1 -> your php version (8.0.30) does not satisfy that requirement. - slim/psr7[1.0.0, ..., 1.2.0] require php ^7.2 -> your php version (8.0.30) does not satisfy that requirement. - slim/psr7[1.3.0, ..., 1.6.1] require psr/http-message ^1.0 -> found psr/http-message[1.0, 1.0.1, 1.1] but the package is fixed to 2.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command. - Root composer.json requires slim/psr7 * -> satisfiable by slim/psr7[0.1.0, ..., 0.6, 1.0.0, ..., 1.6.1]. 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 slim/psr7:*" to figure out if any version is installable, or "composer require slim/psr7:^2.1" if you know which you need. Installation failed, reverting ./composer.json and ./composer.lock to their original content.
Источник: https://stackoverflow.com/questions/781 ... -framework
It happens when I type "composer require slim/psr7" in CMD vs code terminal.
Your requirements could not be resolved to an installable set of packages. Problem 1 - slim/psr7[0.1.0, ..., 0.6] require php ^7.1 -> your php version (8.0.30) does not satisfy that requirement. - slim/psr7[1.0.0, ..., 1.2.0] require php ^7.2 -> your php version (8.0.30) does not satisfy that requirement. - slim/psr7[1.3.0, ..., 1.6.1] require psr/http-message ^1.0 -> found psr/http-message[1.0, 1.0.1, 1.1] but the package is fixed to 2.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command. - Root composer.json requires slim/psr7 * -> satisfiable by slim/psr7[0.1.0, ..., 0.6, 1.0.0, ..., 1.6.1]. 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 slim/psr7:*" to figure out if any version is installable, or "composer require slim/psr7:^2.1" if you know which you need. Installation failed, reverting ./composer.json and ./composer.lock to their original content.
Источник: https://stackoverflow.com/questions/781 ... -framework
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
PHP Slim Framework – хотите подключить базу данных с помощью метода Eloquent (slim v4)
Anonymous » » в форуме Php - 0 Ответы
- 17 Просмотры
-
Последнее сообщение Anonymous
-