Can not get the module by composer.

Created on 7 August 2023, over 1 year ago
Updated 21 February 2024, 10 months ago

My Drupal Version is 9.5.10
PHP Version 8.1.18
I am trying to get the module:
composer require 'drupal/rocket_chat:^3.0'

But unsuccessful:
Problem 1
- Root composer.json requires drupal/rocket_chat, it 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 for more details.
- It's a private package and you forgot to add a custom repository to find it

How could I fix it?

💬 Support request
Status

Closed: works as designed

Version

3.0

Component

Miscellaneous

Created by

🇮🇳India sahil.shaikh

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

Comments & Activities

  • Issue created by @sahil.shaikh
  • Status changed to Needs review over 1 year ago
  • 🇮🇳India rushiraval

    I have install on D 9.5.1 PHP 8.2. Working fine

  • Status changed to RTBC over 1 year ago
  • 🇮🇳India sahil.shaikh

    Sorry, I figured it out it was my composer issue.
    In my composer.json file

    "repositories": [
            {
                "type": "composer",
                "url": "https://packages.drupal.org/8",
            "type": "composer",
            "url": "https://asset-packagist.org"
        }
        ],
    

    which was incorrect because we had 2 keys in same object

    So i have created 2 objects for 2 keys,
    Changing to this fixed my issue and able to install module with composer.

    "repositories": [
        {
            "type": "composer",
            "url": "https://packages.drupal.org/8"
        },
        {
            "type": "composer",
            "url": "https://asset-packagist.org"
        }
    ],
    
  • Status changed to Closed: works as designed over 1 year ago
  • 🇫🇷France devil2005

    Hi,

    I reopen this issue because i have this error on composer install

    composer require 'drupal/rocket_chat:3.0.x-dev@dev'
    ./composer.json has been updated
    Running composer update drupal/rocket_chat
    Gathering patches for root package.
    No patches supplied.
    Loading composer repositories with package information
    Updating dependencies
    Your requirements could not be resolved to an installable set of packages.
    
      Problem 1
        - drupal/rocket_chat_api[dev-3.0.x, 2.2.0, 3.0.x-dev] require guzzlehttp/guzzle ^6.2 -> found guzzlehttp/guzzle[6.2.0, ..., 6.5.x-dev] but the package is fixed to 7.8.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
        - drupal/rocket_chat_api[dev-1.x, 1.x-dev] require drupal/rocket_chat ^1 -> found drupal/rocket_chat[dev-1.x, 1.0.0, 1.1.0, 1.x-dev (alias of dev-1.x)] but it conflicts with your root composer.json require (3.0.x-dev@dev).
        - drupal/rocket_chat_api[2.3.0, ..., 2.4.0, 3.0.0, ..., 3.0.1] require drupal/core ^8.8 || ^9 -> found drupal/core[8.8.0-alpha1, ..., 8.9.x-dev, 9.0.0-alpha1, ..., 9.5.x-dev] but it conflicts with your root composer.json require (^10).
        - drupal/rocket_chat_api[dev-2.x, 2.5.0, ..., 2.x-dev] require drupal/rocket_chat ^2 -> found drupal/rocket_chat[dev-2.x, 2.2.0, ..., 2.x-dev (alias of dev-2.x)] but it conflicts with your root composer.json require (3.0.x-dev@dev).
        - drupal/rocket_chat[dev-3.0.x, 3.0.x-dev] require drupal/rocket_chat_api * -> satisfiable by drupal/rocket_chat_api[dev-1.x, dev-2.x, dev-3.0.x, 1.x-dev (alias of dev-1.x), 2.2.0, ..., 2.x-dev, 3.0.0, 3.0.1, 3.0.x-dev (alias of dev-3.0.x)].
        - drupal/rocket_chat 3.0.x-dev is an alias of drupal/rocket_chat dev-3.0.x and thus requires it to be installed too.
        - drupal/rocket_chat_api 3.0.x-dev is an alias of drupal/rocket_chat_api dev-3.0.x and thus requires it to be installed too.
        - drupal/rocket_chat_api 1.x-dev is an alias of drupal/rocket_chat_api dev-1.x and thus requires it to be installed too.
        - Root composer.json requires drupal/rocket_chat 3.0.x-dev@dev -> satisfiable by drupal/rocket_chat[3.0.x-dev (alias of dev-3.0.x)].
    
    Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
    
    Installation failed, reverting ./composer.json and ./composer.lock to their original content.
    

    Anyone can help ?

    Thanks

  • 🇫🇷France devil2005

    Duplicated with : 📌 Automated Drupal 10 compatibility fixes Needs work

Production build 0.71.5 2024