Unable to install via composer, missing drupal/lms_answer_plugins-lms_answer_plugins

Created on 18 August 2025, 2 months ago

Problem/Motivation

When attempting to install the module using composer, the following error occurs:

composer require 'drupal/lms_migrate:1.0.x-dev@dev'
./composer.json has been updated
Running composer update drupal/lms_migrate
Gathering patches for root package.
No patches supplied.
> DrupalComposerManaged\ComposerScripts::preUpdate
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/lms_migrate 1.0.x-dev@dev -> satisfiable by drupal/lms_migrate[1.0.x-dev (alias of dev-1.0.x)].
    - drupal/lms_migrate dev-1.0.x requires drupal/lms_answer_plugins-lms_answer_plugins * -> could not be found in any version, there may be a typo in the package name.
    - drupal/lms_migrate 1.0.x-dev is an alias of drupal/lms_migrate dev-1.0.x and thus requires it to be installed too.

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.

Steps to reproduce

  1. Clone https://github.com/graber-1/drupal_lms_ddev
  2. ddev start
  3. ddev ssh
  4. composer require 'drupal/lms_migrate:1.0.x-dev@dev'

Proposed resolution

Drupal packagist may be reading the *.info.yml file, which contains the following dependencies:

  - drupal:migrate
  - drupal:migrate_drupal
  - lms:lms
  - lms_answer_plugins:lms_answer_plugins
  - migrate_plus:migrate_plus

According the the documentation on info files, the dependency for lms_answer_plugins seems incorrect, as it is not an independent module, but a submodule of lms:

https://www.drupal.org/docs/develop/creating-modules/let-drupal-know-abo...

If so, the dependency may need to be listed as `lms:lms_answer_plugins` instead, to associate it with the LMS module.

Remaining tasks

Create patch.

User interface changes

None.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇺🇸United States socketwench

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024