Problem/Motivation
composer require 'drupal/node_by_email:^2.2' does not create an file structure under modules.
It looks like a success:
./composer.json has been updated
Running composer update drupal/node_by_email
Loading composer repositories with package information
Updating dependencies
Lock file operations: 1 install, 0 updates, 0 removals
- Locking drupal/node_by_email (2.2.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
- Installing drupal/node_by_email (2.2.0): Extracting archive
Package container-interop/container-interop is abandoned, you should avoid using it. Use psr/container instead.
Package doctrine/reflection is abandoned, you should avoid using it. Use roave/better-reflection instead.
Package twig/extensions is abandoned, you should avoid using it. No replacement was suggested.
Package webmozart/path-util is abandoned, you should avoid using it. Use symfony/filesystem instead.
Generating autoload files
Hardening vendor directory with .htaccess and web.config files.
68 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Cleaning installed packages.
But no files are created. (d.9.2.9)
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Comments
Comment #2
devpk commentedIt is downloading under drush/Commands/contrib/ folder at root.
And not available for manual enable via site admin. Can anyone please let me know how can we enable any module that is not present under modules/contrib/.
Comment #3
socialnicheguru commentedin the composer file the type is wrong. It is "type": "drupal-drush". It should be "drupal-module".
Edit:
OMG. i was wondering where it went.
You are totally right about it's destination.
Comment #4
socialnicheguru commentedComment #5
socialnicheguru commentedSetting as major
Comment #6
socialnicheguru commentedComment #8
mmjvb commentedLooks like the composer.json was taken from another drush project, not a drupal module.
Suggest to remove it or adjust it. Changing the type only is not enough.
@devpk There is no way to install modules in Drupal other than those presented on the Extend form. Drupal scans several folders for modules. You are free to organize your modules within them. There is no need for placing them in /modules/contrib. Any structure in /modules is allowed. All modules below /modules will be discovered based on an info.yml.
Comment #9
rajveergangwarAdded patch.
please verify team
Comment #10
mmjvb commentedAccording to project page the description should be:
Comment #11
rajveergangwarudpated with patch
Comment #12
prashant mishra commentedComment #13
prashant mishra commented#11 is working but I did some additional changes in install_via_composer_issue-3250674-13.patch.
Comment #15
rajveergangwargiving credit