Drupal - ошибка установки модуля "сущность" - PullRequest
0 голосов
/ 05 сентября 2018

У меня установлена ​​Drupal в контейнере Docker, с установленными Composer и Drush. Я хотел бы установить модуль Entity-API (https://www.drupal.org/project/entity),, и я начинаю с: composer require drupal/entity Это дает мне ошибку:

Using version ^0.1.0 for drupal/entity
./composer.json has been updated
> DrupalProject\composer\ScriptHandler::checkComposerVersion
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
    - Can only install one of: drupal/core[8.5.6, 8.0.x-dev].
    - Can only install one of: drupal/core[8.0.x-dev, 8.5.6].
    - Can only install one of: drupal/core[8.0.x-dev, 8.5.6].
    - drupal/entity 0.1.0 requires drupal/core <8.1.0 -> satisfiable by drupal/core[8.0.x-dev].
    - Installation request for drupal/entity ^0.1.0 -> satisfiable by drupal/entity[0.1.0].
    - Installation request for drupal/core (locked at 8.5.6, required as ~8.5.3) -> satisfiable by drupal/core[8.5.6].


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

Моя версия Drupal - 8.5.6, и я использую последнюю версию Composer, установленную с https://getcomposer.org/installer

Как мне установить это с помощью Composer? Tx

1 Ответ

0 голосов
/ 05 сентября 2018

Использовать --update-with-all-dependencies переключатель:

composer require drupal/entity --update-with-all-dependencies
  • --update-with-all-dependencies: также обновите зависимости новых требуемых пакетов, включая те, которые являются корневыми требованиями.

https://getcomposer.org/doc/03-cli.md#require

...