magento2: [2.2.0-RC 2.1] Can not install B2B extensions via composer

Description

As indicated via the dev docs (http://devdocs.magento.com/guides/v2.2/release-notes/release-candidate/install.html) RC B2B modules should be installable via composer. However, the modules do not appear to be available.

Preconditions

  1. PHP 7.0.15 (cli)
  2. Composer version 1.5.1

Steps to reproduce

  1. Create a new enterprise project via composer
    1. composer create-project -s RC --repository-url=https://repo.magento.com/ magento/project-enterprise-edition magento-220-rc21 2.2.0-rc21
  2. After successful download of project-enterprise-edition, run command to install B2B modules, per documentation
    1. cd magento-220-rc21
    2. composer require magento/extension-b2b
  3. Attempt to install using the name in the B2B module composer.json file: "name": "magento/module-b2b",
    1. composer require magento/module-b2b
  4. Attempt to install B2B Shared Catalog
    1. composer require magento/module-shared-catalog

Expected result

  1. Installation of B2B modules

Actual result

  1. Error on magento/extension-b2b:
    1. [InvalidArgumentException] Could not find package magento/extension-b2b at any version for your minimum-stability (RC). Check the package spelling or your minimum-stability
  2. Error on magento/module-b2b:
    1. [InvalidArgumentException] Could not find package magento/module-b2b at any version for your minimum-stability (RC). Check the package spelling or your minimum-stability
  3. Error on magento/module-shared-catalog
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - magento/module-shared-catalog 100.0.0-rc21 requires magento/module-b2b 100.0.* -> no matching package found.
    - magento/module-shared-catalog 100.0.0-rc20 requires magento/module-b2b 100.0.* -> no matching package found.
    - Installation request for magento/module-shared-catalog ^100.0@RC -> satisfiable by magento/module-shared-catalog[100.0.0-rc20, 100.0.0-rc21].

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.

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 7
  • Comments: 24 (4 by maintainers)

Most upvoted comments

I’m getting the same issue in Magento Commerce 2.2.1. There are no spaces in the auth keys, I’ve checked that a million times

$ composer require magento/extension-b2b 
                                                                                                                                                        
  [InvalidArgumentException]                                                                                                                            
  Could not find package magento/extension-b2b at any version for your minimum-stability (alpha). Check the package spelling or your minimum-stability 

Adding a require to composer.json and running composer update gives no result as well.

Magento 2 Cloud throwing error while trying to install b2b modules.

Error: composer require magento/extension-b2b Using version ^1.1 for magento/extension-b2b
./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1 - Can only install one of: magento/module-user[101.1.0, 101.0.1]. - Can only install one of: magento/module-user[101.1.0, 101.0.1]. - Can only install one of: magento/module-user[101.0.1, 101.1.0]. - magento/module-shared-catalog 100.1.0 requires magento/module-user 101.1.0 -> satisfiable by magento/module-user[101.1.0]. - magento/extension-b2b 1.1.0 requires magento/module-shared-catalog 100.1.0 -> satisfiable by magento/module-shared-catalog[100.1.0]. - Installation request for magento/extension-b2b ^1.1 -> satisfiable by magento/extension-b2b[1.1.0]. - Installation request for magento/module-user (locked at 101.0.1) -> satisfiable by magento/module-user[101.0.1]

Issue: Run composer update always look modules from compose cache if we are trying to use multiple magento cloud versions. Magento 2.2.2 conflict with old b2b module versions and throw this error

SOlution: composer clear-cache composer update composer require magento/extension-b2b=^1.0 git add . & git commit -m “added b2b modules” git push

This is happening to me. In my case I downloaded the tar from Magento.com and unzipped. Then when I tried to install the b2b module I got the error.

$ composer require magento/extension-b2b

  [InvalidArgumentException]
  Could not find package magento/extension-b2b at any version for your minimum-stability (stable). Check the package
  spelling or your minimum-stability