De installatie van B2B 1.4.0 mislukt op Adobe Commerce 2.4.6-p1 in bedrijven

Dit artikel biedt een oplossing voor het probleem dat zich op locatie bij Adobe Commerce 2.4.6-p1 voordoet en waarbij de installatie van B2B versie 1.4.0 mislukt.

Betrokken producten en versies

  • Adobe Commerce 2.4.6-p1 op-gebouw
  • B2B versie 1.4.0
NOTE
B2B versie 1.4.0 met succes installeert op Adobe Commerce Cloud 2.4.6-p1.

Probleem

Stappen om te reproduceren:

  1. Installeer Adobe Commerce 2.4.6-p1.

    code language-bash
    m2install.sh -s composer --ee -v 2.4.6-p1
    
  2. Installeer B2B versie 1.4.0.

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

Verwachte resultaten :

Met B2B versie 1.4.0 kan worden geïnstalleerd op Adobe Commerce 2.4.6-p1.

Ware resultaten :

Installatie mislukt met de onderstaande fout:

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.

Workaround

Met succes installeren of bevorderen aan B2B versie 1.4.0 op Adobe Commerce 2.4.6-p1 door handgebiedsdelen voor het B2B veiligheidspakket met a stabiliteitmarkeringtoe te voegen.

  1. Werk composer.json vanuit de installatiemap van Adobe Commerce bij met de vereiste afhankelijkheden:

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

    output van het Bevel:

    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. Werk composer.json bij om B2B versie 1.4.0 toe te voegen.

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

    output van het Bevel:

    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. Voltooi het installatie- of upgradeproces.

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