Unable to install bamboo_twig_extensions

Created on 26 January 2024, 5 months ago
Updated 6 March 2024, 4 months ago

Hello and thanks for this valuable module for frontends

Problem/Motivation

I am trying to install bamboo_twig_extensions but I get unmet requirement.

Steps to reproduce

  • composer require 'drupal/bamboo_twig:^6.0'
  • drush en -y bamboo_twig_extensions

Then I get the error message:

[error]  Unable to install module 'bamboo_twig_extensions' due to unmet requirement(s):
  - Bamboo Twig Extensions requires the <a href="http://twig-extensions.readthedocs.io/en/latest/index.html">external Twig Extensions library</a>. The recommended way of solving this dependency is using <a href="https://getcomposer.org">Composer</a> running the following from the command line: <br />composer require twig/extensions

.

  • When I give the suggested command
  • composer require twig/extensions
    I get this error

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - twig/extensions[v1.0.0, ..., v1.0.1] require twig/twig ~1.0 -> found twig/twig[1.3.0, ..., v1.44.7] but the package is fixed to v3.8.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.
    - twig/extensions[v1.1.0, ..., v1.2.0] require twig/twig ~1.12 -> found twig/twig[v1.12.0, ..., v1.44.7] but the package is fixed to v3.8.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.
    - twig/extensions[v1.3.0, ..., v1.4.1] require twig/twig ~1.20|~2.0 -> found twig/twig[v1.20.0, ..., v1.44.7, v2.0.0, ..., v2.16.0] but the package is fixed to v3.8.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.
    - twig/extensions[v1.5.0, ..., v1.5.4] require twig/twig ^1.27|^2.0 -> found twig/twig[v1.27.0, ..., v1.44.7, v2.0.0, ..., v2.16.0] but the package is fixed to v3.8.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 twig/extensions * -> satisfiable by twig/extensions[v1.0.0, ..., v1.5.4].

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 twig/extensions:*" to figure out if any version is installable, or "composer require twig/extensions:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Thanks and have a good day

🐛 Bug report
Status

Fixed

Version

6.0

Component

Code

Created by

🇪🇸Spain candelas

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024