Composer install fails

Created on 29 July 2022, over 2 years ago
Updated 17 March 2023, over 1 year ago

Problem/Motivation

When using composer to install on Drupal 9.4.4, I get the following error:

Using version ^1.4 for drupal/ckeditor_liststyle
./composer.json has been updated
Running composer update drupal/ckeditor_liststyle
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires drupal/ckeditor_liststyle ^1.4 -> satisfiable by drupal/ckeditor_liststyle[1.4.0].
    - drupal/ckeditor_liststyle 1.4.0 requires drupal/ckeditor * -> could not be found in any version, there may be a typo in the package name.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
 - It's a private package and you forgot to add a custom repository to find it

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require drupal/ckeditor_liststyle:*" to figure out if any version is installable, or "composer require drupal/ckeditor_liststyle:^2.1" if you know which you need.

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

Proposed resolution

Since ckeditor is part of core, it does not need to be listed in the composer.json file.

Remaining tasks

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States kwfinken Lansing, MI

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 States timwood Rockville, Maryland

    I can get the 8.x-1.4 version module installed on Drupal 9.5.x without the patch by following similar steps to #4 above.

    1. composer remove drupal/ckeditor_liststyle (we were using the dev version with the patch here)
    2. Manually remove the patch from composer.json
    3. composer require drupal/ckeditor_liststyle

    I guess Drupal.org's package repository can resolve a dependency on drupal/ckeditor to drupal/core...

Production build 0.71.5 2024