composer require 'drupal/telephone_type:^3.2'
./composer.json has been updated
Running composer update drupal/telephone_type
Gathering patches for root package.
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires drupal/telephone_type ^3.2 -> satisfiable by drupal/telephone_type[3.2.0].
    - drupal/telephone_type 3.2.0 requires drupal/telephone * -> 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.

I'm suspecting this is because the dependency to the core Telephone module in the .info.yml file is declared without the project prefix ( drupal: ), so composer is attempting to find a contrib drupal/telephone module, which causes it to fail (because that namespace is reserved for the 7.x version of the Telephone project - not the core one).

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

klonos created an issue. See original summary.

klonos’s picture

Assigned: Unassigned » klonos
Status: Active » Needs review
klonos’s picture

Issue summary: View changes
damienmckenna’s picture

Status: Needs review » Needs work

The composer.json file needs to be modified, that's what's causing the problem here.

  • 7edf3ed committed on 8.x-3.x
    Issue #3302013 by klonos: Cannot install via composer
    
seworthi’s picture

Update info.yml to add project prefix and updated composer to remove dependency to core modules.

seworthi’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

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