Skip to content

Drupal console will fail to install on a fresh Drupal 9 #383

@LorenzoCoronati

Description

@LorenzoCoronati

Drupal console will fail to install on a fresh Drupal 9, because of a dependency on an old version of symfony console.

When trying to install drupal console via composer, I got the following output:

composer -vv require drupal/console:^1.9.4
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Dependency resolution completed in 0.202 seconds
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - drupal/console 1.9.4 requires drupal/console-core 1.9.4 -> satisfiable by drupal/console-core[1.9.4].
    - Installation request for drupal/console ^1.9.4 -> satisfiable by drupal/console[1.9.4].
    - Conclusion: remove symfony/console v4.4.9
    - Conclusion: don't install symfony/console v4.4.9
    - drupal/console-core 1.9.4 requires symfony/event-dispatcher ~2.8|~3.0 -> satisfiable by symfony/event-dispatcher[2.8.x-dev, 3.0.x-dev, 3.1.x-dev, 3.2.x-dev, 3.3.x-dev, 3.4.x-dev, v2.8.0, v2.8.0-BETA1, v2.8.1, v2.8.10, v2.8.11, v2.8.12, v2.8.13, v2.8.14, v2.8.15, v2.8.16, v2.8.17, v2.8.18, v2.8.19, v2.8.2, v2.8.20, v2.8.21, v2.8.22, v2.8.23, v2.8.24, v2.8.25, v2.8.26, v2.8.27, v2.8.28, v2.8.29, v2.8.3, v2.8.30, v2.8.31, v2.8.32, v2.8.33, v2.8.34, v2.8.35, v2.8.36, v2.8.37, v2.8.38, v2.8.39, v2.8.4, v2.8.40, v2.8.41, v2.8.42, v2.8.43, v2.8.44, v2.8.45, v2.8.46, v2.8.47, v2.8.48, v2.8.49, v2.8.5, v2.8.50, v2.8.52, v2.8.6, v2.8.7, v2.8.8, v2.8.9, v3.0.0, v3.0.0-BETA1, v3.0.1, v3.0.2, v3.0.3, v3.0.4, v3.0.5, v3.0.6, v3.0.7, v3.0.8, v3.0.9, v3.1.0, v3.1.0-BETA1, v3.1.0-RC1, v3.1.1, v3.1.10, v3.1.2, v3.1.3, v3.1.4, v3.1.5, v3.1.6, v3.1.7, v3.1.8, v3.1.9, v3.2.0, v3.2.0-BETA1, v3.2.0-RC1, v3.2.0-RC2, v3.2.1, v3.2.10, v3.2.11, v3.2.12, v3.2.13, v3.2.14, v3.2.2, v3.2.3, v3.2.4, v3.2.5, v3.2.6, v3.2.7, v3.2.8, v3.2.9, v3.3.0, v3.3.0-BETA1, v3.3.0-RC1, v3.3.1, v3.3.10, v3.3.11, v3.3.12, v3.3.13, v3.3.14, v3.3.15, v3.3.16, v3.3.17, v3.3.18, v3.3.2, v3.3.3, v3.3.4, v3.3.5, v3.3.6, v3.3.7, v3.3.8, v3.3.9, v3.4.0, v3.4.0-BETA1, v3.4.0-BETA2, v3.4.0-BETA3, v3.4.0-BETA4, v3.4.0-RC1, v3.4.0-RC2, v3.4.1, v3.4.10, v3.4.11, v3.4.12, v3.4.13, v3.4.14, v3.4.15, v3.4.16, v3.4.17, v3.4.18, v3.4.19, v3.4.2, v3.4.20, v3.4.21, v3.4.22, v3.4.23, v3.4.24, v3.4.25, v3.4.26, v3.4.27, v3.4.28, v3.4.29, v3.4.3, v3.4.30, v3.4.31, v3.4.32, v3.4.33, v3.4.34, v3.4.35, v3.4.36, v3.4.37, v3.4.38, v3.4.39, v3.4.4, v3.4.40, v3.4.41, v3.4.42, v3.4.43, v3.4.5, v3.4.6, v3.4.7, v3.4.8, v3.4.9].
    - symfony/event-dispatcher 2.8.x-dev conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.0 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.0-BETA1 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.1 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.10 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.11 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.12 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.13 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.14 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.15 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.16 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.17 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.18 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.19 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.2 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.20 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.21 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.22 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.23 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.24 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.25 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.26 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.27 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.28 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.29 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.3 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.30 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.31 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.32 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.33 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.34 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.35 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.36 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.37 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.38 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.39 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.4 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.40 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.41 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.42 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.43 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.44 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.45 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.46 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.47 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.48 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.49 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.5 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.50 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.52 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.6 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.7 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.8 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v2.8.9 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher 3.0.x-dev conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.0.0 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.0.0-BETA1 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.0.1 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.0.2 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.0.3 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.0.4 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.0.5 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.0.6 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.0.7 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.0.8 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.0.9 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher 3.1.x-dev conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher 3.2.x-dev conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher 3.3.x-dev conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher 3.4.x-dev conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.1.0 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.1.0-BETA1 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.1.0-RC1 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.1.1 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.1.10 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.1.2 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.1.3 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.1.4 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.1.5 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.1.6 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.1.7 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.1.8 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.1.9 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.2.0 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.2.0-BETA1 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.2.0-RC1 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.2.0-RC2 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.2.1 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.2.10 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.2.11 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.2.12 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.2.13 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.2.14 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.2.2 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.2.3 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.2.4 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.2.5 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.2.6 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.2.7 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.2.8 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.2.9 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.3.0 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.3.0-BETA1 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.3.0-RC1 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.3.1 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.3.10 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.3.11 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.3.12 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.3.13 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.3.14 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.3.15 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.3.16 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.3.17 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.3.18 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.3.2 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.3.3 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.3.4 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.3.5 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.3.6 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.3.7 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.3.8 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.3.9 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.0 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.0-BETA1 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.0-BETA2 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.0-BETA3 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.0-BETA4 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.0-RC1 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.0-RC2 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.1 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.10 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.11 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.12 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.13 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.14 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.15 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.16 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.17 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.18 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.19 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.2 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.20 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.21 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.22 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.23 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.24 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.25 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.26 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.27 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.28 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.29 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.3 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.30 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.31 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.32 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.33 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.34 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.35 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.36 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.37 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.38 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.39 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.4 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.40 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.41 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.42 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.43 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.5 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.6 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.7 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.8 conflicts with symfony/console[v4.4.9].
    - symfony/event-dispatcher v3.4.9 conflicts with symfony/console[v4.4.9].
    - Installation request for symfony/console (locked at v4.4.9) -> satisfiable by symfony/console[v4.4.9].


Installation failed, reverting ./composer.json to its original content.
ERROR: Command 'composer' failed. Check its output for possible causes or suggestions on how to proceed or fix the issue.

Please update composer.json to allow symfony/console v.4+

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions