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

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

maxilein created an issue. See original summary.

devpk’s picture

It 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/.

socialnicheguru’s picture

in 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.

socialnicheguru’s picture

Title: install via composer not working » Install via composer not working
Priority: Normal » Critical
socialnicheguru’s picture

Priority: Critical » Major

Setting as major

socialnicheguru’s picture

Status: Active » Needs review
StatusFileSize
new446 bytes

mmjvb’s picture

Looks 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.

rajveergangwar’s picture

StatusFileSize
new483 bytes

Added patch.

please verify team

mmjvb’s picture

According to project page the description should be:

Node by email provides functionality to create the node by only the sending the
mail to an email id from a defined email id.

rajveergangwar’s picture

StatusFileSize
new798 bytes

udpated with patch

prashant mishra’s picture

Assigned: Unassigned » prashant mishra
Status: Needs review » Needs work
prashant mishra’s picture

Version: 8.x-2.2 » 8.x-2.7
Status: Needs work » Fixed
StatusFileSize
new1022 bytes

#11 is working but I did some additional changes in install_via_composer_issue-3250674-13.patch.

rajveergangwar’s picture

giving credit

Status: Fixed » Closed (fixed)

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