Composer installer version 2 support strongly recommended for Drupal 9 and above

Created on 31 October 2021, almost 4 years ago
Updated 23 October 2023, almost 2 years ago

Problem/Motivation

Following the instructions on the project page to install the librarie I encountered following problem on executing composer update:

Problem 1
- Root composer.json requires ckeditor/emojione * -> satisfiable by ckeditor/emojione[1.0.2].
- ckeditor/emojione 1.0.2 requires composer/installers ~1.0 -> found composer/installers[v1.0.0, ..., 1.x-dev] but it conflicts with your root composer.json require (^2.0).

My Composer.json has Composer/installers ^2.0 but it requires ^1.0

Downgrading to 1.0 might cause errors on other installations.

Proposed resolution

Make the librarie installation Composer/installers 2.0 friendly?

🐛 Bug report
Status

Needs review

Version

1.4

Component

Code

Created by

🇧🇪Belgium bart lambert

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.

  • 🇬🇧United Kingdom gMaximus

    I have this working. I followed the instructions to step 3.

    After that step, I opened the module folder and edited composer.libraries.json.

    Replaced this line "composer/installers": "~1.0" with this: "composer/installers": "~2.0"

    Then I continued to step 4. Everything seems to be working as expected.

    Hope it helps someone. Awesome module!!

  • 🇫🇷France dqd London | N.Y.C | Paris | Hamburg | Berlin

    It seems that my previous comment was by accident assuming that we are here in the issue of general composer version support in Drupal. Not sure yet no more. Maybe I mixed tabs. Decreased issue priority regadring the last comment of work arounds.

  • Status changed to Needs review almost 2 years ago
  • 🇧🇪Belgium jurgenr

    Added a patch to use composer/installer ~2.0.

Production build 0.71.5 2024