Installation via composer breaks down

Created on 30 August 2023, about 1 year ago
Updated 28 January 2024, 10 months ago

Problem/Motivation

Installation of CKEditor: Page Break module

Steps to reproduce

1 - Run composer as mentioned in document steps

Best way to install module is through composer. See below:
composer require drupal/pagebreak
drush en pagebreak

2 - Run the command

$ composer require 'drupal/pagebreak:^3.0'
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? 
./composer.json has been updated
Running composer update drupal/pagebreak
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/pagebreak ^3.0 -> satisfiable by drupal/pagebreak[3.0.0].
    - drupal/pagebreak 3.0.0 requires npm-asset/ckeditor--ckeditor5-page-break ^35.4 -> 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.

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

It breaks down due to the error message

drupal/pagebreak 3.0.0 requires npm-asset/ckeditor--ckeditor5-page-break ^35.4 -> could not be found in any version, there may be a typo in the package name.

Please note I'm using Drupal 10.1.2 and have enabled CKEditor 5/

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Fixed

Version

3.0

Component

Code

Created by

🇮🇳India yasheshb

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

Comments & Activities

Production build 0.71.5 2024