Problem/Motivation

When installed via composer, the module installs itself to a `drush` folder at the project root, not in the `modules/contrib` folder. It cannot be enabled.

Steps to reproduce

> composer require 'drupal/password_stats:^1.0'
> drush pm:enable password_stats
Unable to install modules password_stats due to missing modules password_stats.  

> ls drush\Commands\contrib\password_stats\
composer.json  drush.services.yml  LICENSE.txt  password_stats.info.yml  password_stats.install  password_stats.services.yml  README.md  src/
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

bryanbuchs created an issue. See original summary.

dineshkumarbollu’s picture

StatusFileSize
new110.75 KB

I tested the issue in my local, Module is not install giving error "Unable to install modules password_stats due to missing modules password_stats",

I checked the Composer.json file "drupal/password_stats": "^1.0", version is available but in Contrib folder no code is available related to password_stats, i think this is the major reason giving this error.

znerol made their first commit to this issue’s fork.

znerol’s picture

Version: 1.0.0 » 2.x-dev

  • znerol committed 0eea4161 on 2.x
    Issue #3381545: composer installs to `/drush/`, cannot be enabled
    
znerol’s picture

Status: Active » Fixed

Thanks for the report. I released 2.0. Would you mind trying again?

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.