Я использую Laravel 11.8.0 для своего проекта веб-приложения и хочу создать страницу администратора. Поэтому я попытался установить laravel-admin. Однако он выдал мне ошибку: «Ваши требования не могут быть удовлетворены с помощью устанавливаемого набора пакетов». Означает ли это, что laravel-admin несовместим с laravel 11? Я был сбит с толку, потому что laravel-admin на GitHub просто заявляет, что требования PHP >= 7.0.0 и Laravel >= 5.5.0.
Ниже приведено полное сообщение об ошибке:
astroid@Tatsunoris-MacBook-Pro wvs % composer require encore/laravel-admin
./composer.json has been updated
Running composer update encore/laravel-admin
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- encore/laravel-admin v1.1.6 requires laravel/framework 5.1.* -> found laravel/framework[v5.1.0, ..., v5.1.46] but it conflicts with your root composer.json require (^11.0).
- encore/laravel-admin[v1.2.6, ..., v1.2.10] require laravel/framework 5.2.* -> found laravel/framework[v5.2.0, ..., v5.2.45] but it conflicts with your root composer.json require (^11.0).
- encore/laravel-admin[v1.3.3, ..., v1.3.4] require laravel/framework 5.3.* -> found laravel/framework[v5.3.0, ..., v5.3.31] but it conflicts with your root composer.json require (^11.0).
- encore/laravel-admin[v1.4.1, ..., v1.4.6] require laravel/framework 5.4.* -> found laravel/framework[v5.4.0, ..., v5.4.36] but it conflicts with your root composer.json require (^11.0).
- encore/laravel-admin[v1.5.5, ..., v1.7.6] require laravel/framework ~5.5 -> found laravel/framework[v5.5.0, ..., v5.8.38] but it conflicts with your root composer.json require (^11.0).
- encore/laravel-admin[v1.7.7, ..., v1.7.9] require laravel/framework ~5.5|~6.0 -> found laravel/framework[v5.5.0, ..., v5.8.38, v6.0.0, ..., v6.20.44] but it conflicts with your root composer.json require (^11.0).
- doctrine/common[v2.4.0, ..., v2.5.3] require doctrine/inflector 1.* -> found doctrine/inflector[v1.0, ..., 1.4.4] but the package is fixed to 2.0.10 (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.
- doctrine/common[v2.6.0, ..., v2.6.2] require php ~5.5|~7.0 -> your php version (8.2.17) does not satisfy that requirement.
- doctrine/common[v2.7.0, ..., v2.7.3] require php ~5.6|~7.0 -> your php version (8.2.17) does not satisfy that requirement.
- doctrine/common[v2.8.0, ..., v2.8.1] require php ~7.1 -> your php version (8.2.17) does not satisfy that requirement.
- doctrine/common[v2.9.0, ..., 2.13.0] require php ^7.1 -> your php version (8.2.17) does not satisfy that requirement.
- doctrine/dbal[v2.6.0, ..., v2.9.3] require php ^7.1 -> your php version (8.2.17) does not satisfy that requirement.
- doctrine/common[2.13.1, ..., 2.13.3] require doctrine/inflector ^1.0 -> found doctrine/inflector[v1.0, ..., 1.4.4] but the package is fixed to 2.0.10 (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.
- doctrine/dbal[v2.10.0, ..., 2.10.4] require php ^7.2 -> your php version (8.2.17) does not satisfy that requirement.
- doctrine/dbal[2.11.0, ..., 2.11.3] require php ^7.3 -> your php version (8.2.17) does not satisfy that requirement.
- carbonphp/carbon-doctrine-types 3.2.0 conflicts with doctrine/dbal 3.8.4.
- encore/laravel-admin[v1.7.11, ..., v1.8.14] require doctrine/dbal 2.* -> satisfiable by doctrine/dbal[2.1.5, ..., 2.13.9].
- nesbot/carbon 3.4.0 requires carbonphp/carbon-doctrine-types * -> satisfiable by carbonphp/carbon-doctrine-types[3.2.0].
- symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 3.5.4.
- symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 3.4.6.
- symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 3.3.8.
- symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 3.3.5.
- symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 3.2.2.
- symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 3.1.5.
- symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 3.1.0.
- symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 3.0.0.
- symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 2.13.9.
- symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 2.13.8.
- symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 2.13.1.
- symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 2.12.1.
- symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 2.3.5.
- symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 2.3.2.
- symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 2.2.2.
- symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 2.1.7.
- laravel/framework v11.8.0 requires nesbot/carbon ^2.72.2|^3.0 -> satisfiable by nesbot/carbon[3.4.0].
- laravel/framework v11.8.0 requires symfony/http-foundation ^7.0 -> satisfiable by symfony/http-foundation[v7.0.7].
- doctrine/dbal[v2.5.0, ..., v2.5.2] require doctrine/common >=2.4, satisfiable by doctrine/common[v2.4.0, ..., v2.5.3].
- doctrine/dbal[v2.5.3, ..., v2.5.5] require doctrine/common >=2.4, satisfiable by doctrine/common[v2.4.0, ..., v2.6.2].
- doctrine/dbal[v2.5.6, ..., v2.5.13] require doctrine/common >=2.4, satisfiable by doctrine/common[v2.4.0, ..., v2.7.3].
- doctrine/dbal[v2.4.0, ..., v2.4.5] require doctrine/common ~2.4 -> satisfiable by doctrine/common[v2.4.0, ..., 2.13.3].
- laravel/framework is locked to version v11.8.0 and an update of this package was not requested.
- encore/laravel-admin[v1.8.15, ..., v1.8.19] require doctrine/dbal 2.*|3.* -> satisfiable by doctrine/dbal[2.1.5, ..., 2.13.9, 3.0.0, ..., 3.8.4].
- Root composer.json requires encore/laravel-admin * -> satisfiable by encore/laravel-admin[v1.1.6, ..., v1.8.19].
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 encore/laravel-admin:*" to figure out if any version is installable, or "composer require encore/laravel-admin:^2.1" if you know which you need.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
Когда я искал, версии, поддерживаемые пакетом encore/laravel-admin, — это версии Laravel до 8.x. Однако это противоречит тому, что написано на странице laravel-admin на GitHub: Laravel >= 5.5.0. это минимальное требование.
Я использую Laravel 11.8.0 для своего проекта веб-приложения и хочу создать страницу администратора. Поэтому я попытался установить laravel-admin. Однако он выдал мне ошибку: «Ваши требования не могут быть удовлетворены с помощью устанавливаемого набора пакетов». Означает ли это, что laravel-admin несовместим с laravel 11? Я был сбит с толку, потому что laravel-admin на GitHub просто заявляет, что требования PHP >= 7.0.0 и Laravel >= 5.5.0. Ниже приведено полное сообщение об ошибке: [code]astroid@Tatsunoris-MacBook-Pro wvs % composer require encore/laravel-admin ./composer.json has been updated Running composer update encore/laravel-admin Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages.
Problem 1 - encore/laravel-admin v1.1.6 requires laravel/framework 5.1.* -> found laravel/framework[v5.1.0, ..., v5.1.46] but it conflicts with your root composer.json require (^11.0). - encore/laravel-admin[v1.2.6, ..., v1.2.10] require laravel/framework 5.2.* -> found laravel/framework[v5.2.0, ..., v5.2.45] but it conflicts with your root composer.json require (^11.0). - encore/laravel-admin[v1.3.3, ..., v1.3.4] require laravel/framework 5.3.* -> found laravel/framework[v5.3.0, ..., v5.3.31] but it conflicts with your root composer.json require (^11.0). - encore/laravel-admin[v1.4.1, ..., v1.4.6] require laravel/framework 5.4.* -> found laravel/framework[v5.4.0, ..., v5.4.36] but it conflicts with your root composer.json require (^11.0). - encore/laravel-admin[v1.5.5, ..., v1.7.6] require laravel/framework ~5.5 -> found laravel/framework[v5.5.0, ..., v5.8.38] but it conflicts with your root composer.json require (^11.0). - encore/laravel-admin[v1.7.7, ..., v1.7.9] require laravel/framework ~5.5|~6.0 -> found laravel/framework[v5.5.0, ..., v5.8.38, v6.0.0, ..., v6.20.44] but it conflicts with your root composer.json require (^11.0). - doctrine/common[v2.4.0, ..., v2.5.3] require doctrine/inflector 1.* -> found doctrine/inflector[v1.0, ..., 1.4.4] but the package is fixed to 2.0.10 (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. - doctrine/common[v2.6.0, ..., v2.6.2] require php ~5.5|~7.0 -> your php version (8.2.17) does not satisfy that requirement. - doctrine/common[v2.7.0, ..., v2.7.3] require php ~5.6|~7.0 -> your php version (8.2.17) does not satisfy that requirement. - doctrine/common[v2.8.0, ..., v2.8.1] require php ~7.1 -> your php version (8.2.17) does not satisfy that requirement. - doctrine/common[v2.9.0, ..., 2.13.0] require php ^7.1 -> your php version (8.2.17) does not satisfy that requirement. - doctrine/dbal[v2.6.0, ..., v2.9.3] require php ^7.1 -> your php version (8.2.17) does not satisfy that requirement. - doctrine/common[2.13.1, ..., 2.13.3] require doctrine/inflector ^1.0 -> found doctrine/inflector[v1.0, ..., 1.4.4] but the package is fixed to 2.0.10 (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. - doctrine/dbal[v2.10.0, ..., 2.10.4] require php ^7.2 -> your php version (8.2.17) does not satisfy that requirement. - doctrine/dbal[2.11.0, ..., 2.11.3] require php ^7.3 -> your php version (8.2.17) does not satisfy that requirement. - carbonphp/carbon-doctrine-types 3.2.0 conflicts with doctrine/dbal 3.8.4. - encore/laravel-admin[v1.7.11, ..., v1.8.14] require doctrine/dbal 2.* -> satisfiable by doctrine/dbal[2.1.5, ..., 2.13.9]. - nesbot/carbon 3.4.0 requires carbonphp/carbon-doctrine-types * -> satisfiable by carbonphp/carbon-doctrine-types[3.2.0]. - symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 3.5.4. - symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 3.4.6. - symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 3.3.8. - symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 3.3.5. - symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 3.2.2. - symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 3.1.5. - symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 3.1.0. - symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 3.0.0. - symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 2.13.9. - symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 2.13.8. - symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 2.13.1. - symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 2.12.1. - symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 2.3.5. - symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 2.3.2. - symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 2.2.2. - symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 2.1.7. - laravel/framework v11.8.0 requires nesbot/carbon ^2.72.2|^3.0 -> satisfiable by nesbot/carbon[3.4.0]. - laravel/framework v11.8.0 requires symfony/http-foundation ^7.0 -> satisfiable by symfony/http-foundation[v7.0.7]. - doctrine/dbal[v2.5.0, ..., v2.5.2] require doctrine/common >=2.4, satisfiable by doctrine/common[v2.4.0, ..., v2.5.3]. - doctrine/dbal[v2.5.3, ..., v2.5.5] require doctrine/common >=2.4, satisfiable by doctrine/common[v2.4.0, ..., v2.6.2]. - doctrine/dbal[v2.5.6, ..., v2.5.13] require doctrine/common >=2.4, satisfiable by doctrine/common[v2.4.0, ..., v2.7.3]. - doctrine/dbal[v2.4.0, ..., v2.4.5] require doctrine/common ~2.4 -> satisfiable by doctrine/common[v2.4.0, ..., 2.13.3]. - laravel/framework is locked to version v11.8.0 and an update of this package was not requested. - encore/laravel-admin[v1.8.15, ..., v1.8.19] require doctrine/dbal 2.*|3.* -> satisfiable by doctrine/dbal[2.1.5, ..., 2.13.9, 3.0.0, ..., 3.8.4]. - Root composer.json requires encore/laravel-admin * -> satisfiable by encore/laravel-admin[v1.1.6, ..., v1.8.19].
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 encore/laravel-admin:*" to figure out if any version is installable, or "composer require encore/laravel-admin:^2.1" if you know which you need.
Installation failed, reverting ./composer.json and ./composer.lock to their original content. [/code] Когда я искал, версии, поддерживаемые пакетом encore/laravel-admin, — это версии Laravel до 8.x. Однако это противоречит тому, что написано на странице laravel-admin на GitHub: Laravel >= 5.5.0. это минимальное требование.