Installationen av B2B 1.4.0 misslyckas på Adobe Commerce 2.4.6-p1 lokalt

I den här artikeln beskrivs en lösning på problemet med lokal installation av Adobe Commerce 2.4.6-p1 där installationen av B2B version 1.4.0 misslyckas.

Berörda produkter och versioner

  • Adobe Commerce 2.4.6-p1 lokal
  • B2B version 1.4.0
NOTE
B2B version 1.4.0 har installerats på Adobe Commerce Cloud 2.4.6-p1.

Problem

Steg som ska återskapas:

  1. Installera Adobe Commerce 2.4.6-p1.

    code language-bash
    m2install.sh -s composer --ee -v 2.4.6-p1
    
  2. Försök installera B2B version 1.4.0.

    code language-bash
    composer require magento/extension-b2b:1.4.0
    

Förväntade resultat:

B2B version 1.4.0 installeras på Adobe Commerce 2.4.6-p1.

Faktiska resultat:

Installationen misslyckas med följande fel:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires magento/extension-b2b 1.4.0 -> satisfiable by magento/extension-b2b[1.4.0].
    - magento/extension-b2b 1.4.0 requires magento/security-package-b2b 1.0.4-beta1 -> found magento/security-package-b2b[1.0.4-beta1] but it does not match your minimum-stability.


Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Tillfällig lösning

Installationen eller uppgraderingen av B2B version 1.4.0 på Adobe Commerce 2.4.6-p1 slutfördes genom att manuella beroenden för säkerhetspaketet B2B lades till med en stabilitetstagg.

  1. Uppdatera composer.json med nödvändiga beroenden från Adobe Commerce installationskatalog:

    code language-bash
    composer require magento/module-re-captcha-company=1.0.3-beta1@beta magento/security-package-b2b=1.0.4-beta1@beta
    

    Kommandoutdata:

    code language-bash
    Running composer update magento/module-re-captcha-company magento/security-package-b2b
    Loading composer repositories with package information
    Updating dependencies
    Lock file operations: 2 installs, 0 updates, 0 removals
      - Locking magento/module-re-captcha-company (1.0.3-beta1)
      - Locking magento/security-package-b2b (1.0.4-beta1)
    Writing lock file
    Installing dependencies from lock file (including require-dev)
    Package operations: 2 installs, 0 updates, 0 removals
      - Downloading magento/module-re-captcha-company (1.0.3-beta1)
      - Installing magento/module-re-captcha-company (1.0.3-beta1): Extracting archive
      - Installing magento/security-package-b2b (1.0.4-beta1)
    1 package suggestions were added by new dependencies, use `composer suggest` to see details.
    Package sebastian/phpcpd is abandoned, you should avoid using it. No replacement was suggested.
    Generating autoload files
    132 packages you are using are looking for funding.
    Use the `composer fund` command to find out more!
    No security vulnerability advisories found
    
  2. Uppdatera composer.json om du vill lägga till B2B version 1.4.0.

    code language-bash
    composer require magento/extension-b2b=1.4.0
    

    Kommandoutdata:

    code language-bash
    ./composer.json has been updated
    Running composer update magento/extension-b2b
    Loading composer repositories with package information
    Updating dependencies
    ...
    Generating autoload files
    132 packages you are using are looking for funding.
    Use the `composer fund` command to find out more!
    No security vulnerability advisories found
    
  3. Slutför installations- eller uppgraderingsprocessen.

recommendation-more-help
8bd06ef0-b3d5-4137-b74e-d7b00485808a