Install fails on Drupal 10.1.6 using DDEV

Created on 27 November 2023, 7 months ago
Updated 28 November 2023, 7 months ago

Problem/Motivation

Cannot install any version of Admin Toolbar 3.* on Drupal 10.1.6. Tried v. 3.0, 3.2, no version. Added the -W flag.

Steps to reproduce

Install DDEV-Local on WSL2, Windows 11. Install recommended version of Drupal using DDEV and Composer. Add language modules included from the admin form (extend). Then try to install admin_toolbar. This is the command I wrote (although I got same result with no version indicated):

ddev composer require 'drupal/admin_toolbar:^3.2' -W

This is what I got as an answer:

./composer.json has been updated
Running composer update drupal/admin_toolbar --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1
- drush/drush[10.1.0, ..., 10.3.5] require composer/semver ^1.4 -> found composer/semver[1.4.0, ..., 1.7.2] but these were not loaded, likely because it conflicts with another require.
- drush/drush[10.3.6, ..., 10.6.2] require psr/log ~1.0 -> found psr/log[1.0.0, ..., 1.1.4] but these were not loaded, likely because it conflicts with another require.
- Root composer.json requires drush/drush ^10.1 -> satisfiable by drush/drush[10.1.0, ..., 10.6.2].

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
Composer [require drupal/admin_toolbar:^3.2 -W] failed, composer command failed: exit status 2. stderr=

💬 Support request
Status

Closed: works as designed

Version

3.4

Component

Code

Created by

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • OK, I don't know how to make this issue be "solved", but here's the fix:

    The problem was that I was following a tutorial by Acquia on YouTube that was like a year old. It was at some point making us install this:

    composer require drush/drush:^10.1 --no-update

    Fix: I reinstalled drush like this:

    ddev composer require drush/drush -W

    And then I was able to install admin_toolbar without a glitch!

  • Status changed to Closed: works as designed 7 months ago
  • 🇮🇳India sijumpk

    Closing the thread as this was not an issue with Admin Toolbar modules.

Production build 0.69.0 2024