Проблема установки commerce. " but these conflict with your requirements or minimum-stability"

Главные вкладки

Аватар пользователя Валерий54 Валерий54 2 апреля 2019 в 13:22

Добрый день.
При установке commerce через композитора вышла ошибка:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for drupal/commerce 2.x-dev -> satisfiable by drupal/commerce[2.x-dev].
- drupal/commerce 2.x-dev requires drupal/entity ^1.0-rc1 -> satisfiable by drupal/entity[1.x-dev, 1.0.0-rc2, 1.0.0-rc1] but these conflict with your requirements or minimum-stability.
Installation failed, reverting ./composer.json to its original content.

Ваши требования не могут быть разрешены для устанавливаемого набора пакетов.
Проблема 1
- Запрос на установку drupal / commerce 2.x-dev -> удовлетворяется drupal / commerce [2.x-dev].
- drupal / commerce 2.x-dev требует drupal / entity ^ 1.0-rc1 -> выполнимых с помощью drupal / entity [1.x-dev, 1.0.0-rc2, 1.0.0-rc1], но это противоречит вашим требованиям или минимальная стабильность.
Установка не удалась, вернув ./composer.json к исходному содержимому.

Что делать?

Ivan Abramenko Модератор Валерий Конюков • 6 дней назад
Нужно поставить drupal/entity:
composer require drupal/entity
Попробуйте с этого начать, потом попробуйте поставить какую-то определенную версию drupal/commerce или drupal/commerce:^2.0.

--- Команда composer require drupal/entity прогрузилась, проблема осталась.
--- Поставить какую-то определенную версию drupal/commerce или drupal/commerce:^2.0 - поставил, программа прописана через загрузку расширения на сайте, проблема та же.
--- Пришлось загружать отдельные блоки через менеджер загрузки.

--- Попытки поставить в различных вариациях:

MIX@MIX-PC C:\Users\MIX
# composer require drupal/commerce
Using version ^2.12 for drupal/commerce
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Installation request for drupal/commerce ^2.12 -> satisfiable by drupal/co
mmerce[2.12.0].
- drupal/commerce 2.12.0 requires drupal/entity ^1.0-rc1 -> satisfiable by d
rupal/entity[1.x-dev, 1.0.0-rc2, 1.0.0-rc1] but these conflict with your require
ments or minimum-stability.

Installation failed, reverting ./composer.json to its original content.

MIX@MIX-PC C:\Users\MIX
# composer require drupal/commerce:^2.0
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Installation request for drupal/commerce 2.0 -> satisfiable by drupal/comm
erce[2.0.0].
- drupal/commerce 2.0.0 requires drupal/entity ~1.0 -> satisfiable by drupal
/entity[1.x-dev, 1.0.0-rc2, 1.0.0-rc1, 1.0.0-beta4, 1.0.0-beta3, 1.0.0-beta2, 1.
0.0-beta1, 1.0.0-alpha4, 1.0.0-alpha3, 1.0.0-alpha2, 1.0.0-alpha1] but these con
flict with your requirements or minimum-stability.

Installation failed, reverting ./composer.json to its original content.

MIX@MIX-PC C:\Users\MIX
# composer require "drupal/commerce -dev"

[InvalidArgumentException]
Could not find package drupal/commerce in a version matching -dev

require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest]
[--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--
update-with-all-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--pref
er-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authorita
tive] [--apcu-autoloader] [--] []...

MIX@MIX-PC C:\Users\MIX
# composer require "drupal/commerce"
Using version ^2.12 for drupal/commerce
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Installation request for drupal/commerce ^2.12 -> satisfiable by drupal/co
mmerce[2.12.0].
- drupal/commerce 2.12.0 requires drupal/entity ^1.0-rc1 -> satisfiable by d
rupal/entity[1.x-dev, 1.0.0-rc2, 1.0.0-rc1] but these conflict with your require
ments or minimum-stability.

Installation failed, reverting ./composer.json to its original content.

MIX@MIX-PC C:\Users\MIX
# composer require "drupal/commerce:^2.0"
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- drupal/commerce 2.0.0 requires drupal/entity ~1.0 -> satisfiable by drupal
/entity[1.x-dev, 1.0.0-rc2, 1.0.0-rc1, 1.0.0-beta4, 1.0.0-beta3, 1.0.0-beta2, 1.
0.0-beta1, 1.0.0-alpha4, 1.0.0-alpha3, 1.0.0-alpha2, 1.0.0-alpha1] but these con
flict with your requirements or minimum-stability.
- drupal/commerce 2.1.0 requires drupal/entity ~1.0 -> satisfiable by drupal
/entity[1.x-dev, 1.0.0-rc2, 1.0.0-rc1, 1.0.0-beta4, 1.0.0-beta3, 1.0.0-beta2, 1.
0.0-beta1, 1.0.0-alpha4, 1.0.0-alpha3, 1.0.0-alpha2, 1.0.0-alpha1] but these con
flict with your requirements or minimum-stability.
- drupal/commerce 2.2.0 requires drupal/entity ~1.0 -> satisfiable by drupal
/entity[1.x-dev, 1.0.0-rc2, 1.0.0-rc1, 1.0.0-beta4, 1.0.0-beta3, 1.0.0-beta2, 1.
0.0-beta1, 1.0.0-alpha4, 1.0.0-alpha3, 1.0.0-alpha2, 1.0.0-alpha1] but these con
flict with your requirements or minimum-stability.
- drupal/commerce 2.3.0 requires drupal/entity ~1.0 -> satisfiable by drupal
/entity[1.x-dev, 1.0.0-rc2, 1.0.0-rc1, 1.0.0-beta4, 1.0.0-beta3, 1.0.0-beta2, 1.
0.0-beta1, 1.0.0-alpha4, 1.0.0-alpha3, 1.0.0-alpha2, 1.0.0-alpha1] but these con
flict with your requirements or minimum-stability.
- drupal/commerce 2.4.0 requires drupal/entity ~1.0 -> satisfiable by drupal
/entity[1.x-dev, 1.0.0-rc2, 1.0.0-rc1, 1.0.0-beta4, 1.0.0-beta3, 1.0.0-beta2, 1.
0.0-beta1, 1.0.0-alpha4, 1.0.0-alpha3, 1.0.0-alpha2, 1.0.0-alpha1] but these con
flict with your requirements or minimum-stability.
- drupal/commerce 2.5.0 requires drupal/entity ~1.0 -> satisfiable by drupal
/entity[1.x-dev, 1.0.0-rc2, 1.0.0-rc1, 1.0.0-beta4, 1.0.0-beta3, 1.0.0-beta2, 1.
0.0-beta1, 1.0.0-alpha4, 1.0.0-alpha3, 1.0.0-alpha2, 1.0.0-alpha1] but these con
flict with your requirements or minimum-stability.
- drupal/commerce 2.6.0 requires drupal/entity ^1.0-beta3 -> satisfiable by
drupal/entity[1.x-dev, 1.0.0-rc2, 1.0.0-rc1, 1.0.0-beta4, 1.0.0-beta3] but these
conflict with your requirements or minimum-stability.
- drupal/commerce 2.7.0 requires drupal/entity ^1.0-beta3 -> satisfiable by
drupal/entity[1.x-dev, 1.0.0-rc2, 1.0.0-rc1, 1.0.0-beta4, 1.0.0-beta3] but these
conflict with your requirements or minimum-stability.
- drupal/commerce 2.8.0 requires drupal/entity ^1.0-beta4 -> satisfiable by
drupal/entity[1.x-dev, 1.0.0-rc2, 1.0.0-rc1, 1.0.0-beta4] but these conflict wit
h your requirements or minimum-stability.
- drupal/commerce 2.9.0 requires drupal/entity ^1.0-beta4 -> satisfiable by
drupal/entity[1.x-dev, 1.0.0-rc2, 1.0.0-rc1, 1.0.0-beta4] but these conflict wit
h your requirements or minimum-stability.
- drupal/commerce 2.10.0 requires drupal/entity ^1.0-rc1 -> satisfiable by d
rupal/entity[1.x-dev, 1.0.0-rc2, 1.0.0-rc1] but these conflict with your require
ments or minimum-stability.
- drupal/commerce 2.11.0 requires drupal/entity ^1.0-rc1 -> satisfiable by d
rupal/entity[1.x-dev, 1.0.0-rc2, 1.0.0-rc1] but these conflict with your require
ments or minimum-stability.
- drupal/commerce 2.12.0 requires drupal/entity ^1.0-rc1 -> satisfiable by d
rupal/entity[1.x-dev, 1.0.0-rc2, 1.0.0-rc1] but these conflict with your require
ments or minimum-stability.
- Installation request for drupal/commerce ^2.0 -> satisfiable by drupal/com
merce[2.12.0, 2.11.0, 2.10.0, 2.9.0, 2.8.0, 2.7.0, 2.6.0, 2.5.0, 2.4.0, 2.3.0, 2
.2.0, 2.1.0, 2.0.0].

Installation failed, reverting ./composer.json to its original content.

MIX@MIX-PC C:\Users\MIX
# composer require "drupal/commerce:^2.0 -dev"

[InvalidArgumentException]
Could not find package drupal/commerce in a version matching ^2.0 -dev

require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest]
[--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--
update-with-all-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--pref
er-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authorita
tive] [--apcu-autoloader] [--] []...

--- php composer.phar install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Generating autoload files --- прописался его раньше не было.

--- Вот эти три пакета у меня высвечиваются красным
http://storeideas.info/img/composer/2222.png

Как их обновить? Использование команды php composer.phar update "vendor/*" (через командную строку) не даёт результата: Nothing to install or update.

--- попытка использовать php composer.phar no-check-all через командную строку не даёт результат, пишет команда не опознана.

- Может следует от сюда https://getcomposer.org/doc...
Воткнуть этот файл?:
{
"name": "acme/hello-world",
"require": {
"monolog/monolog": "1.0.*"
}
}

- Или применить команду --ignore-платформа Reqs ? : игнорировать php, hhvm, lib-*и ext-* требование и заставить установку , даже если локальная машина не выполняет их. https://getcomposer.org/doc...
Как её правильно задать с последующим запуском пакета composer require "drupal/commerce 2.x-dev" ?

- так же есть совет https://getcomposer.org/doc...
{
"require" : {
"php" : "^5.5 || ^7.0",
"ext-mbstring": "*"
}
}
Будет ли это решением, пока не понятно.

--- Следует ли применить "prefer-stable" ?: true
http://storeideas.info/img/composer/2344.png

--- мой код composer.json
http://storeideas.info/img/composer/34567.png
--- модульная установка так же не дала результата. Блок Коммерция не доступен так как модуль Address требует ссылки на библиотеку.
http://storeideas.info/img/composer/4444.png

Лучший ответ

Аватар пользователя Валерий54 Валерий54 13 апреля 2019 в 15:49

Вот здесь детальный разбор http://drupalbook.ru/drupal/5-drupal-commerce

Вопрос решён изменением настроек сервера Apach, модуля PHP и рекомендацией по установке в указанном выше видео.
Настройки сервера http://storeideas.info/img/composer/nastrojki_servera.jpg
Исполнительная команда для GIT Bash Here
composer create-project drupal-composer/drupal-project:8.x-dev commerce-stability-dev --no-interaction

Комментарии

Аватар пользователя Orion76 Orion76 2 апреля 2019 в 13:42

Никогда не ставьте dev-версии модулей в частности и ПО вообще, если Вы не тестировщик на зарплате с соответствующими проф.навыками.

Аватар пользователя Валерий54 Валерий54 13 апреля 2019 в 15:49

Вот здесь детальный разбор http://drupalbook.ru/drupal/5-drupal-commerce

Вопрос решён изменением настроек сервера Apach, модуля PHP и рекомендацией по установке в указанном выше видео.
Настройки сервера http://storeideas.info/img/composer/nastrojki_servera.jpg
Исполнительная команда для GIT Bash Here
composer create-project drupal-composer/drupal-project:8.x-dev commerce-stability-dev --no-interaction