B2B Falha na instalação do 1.4.0 no Adobe Commerce 2.4.6-p1 no local

Este artigo fornece uma solução alternativa para o problema no local do Adobe Commerce 2.4.6-p1 em que B2B falha na instalação da versão 1.4.0.

Produtos e versões afetados

  • Adobe Commerce 2.4.6-p1 no local
  • B2B versão 1.4.0
NOTE
B2B A versão 1.4.0 é instalada com êxito no Adobe Commerce Cloud 2.4.6-p1.

Problema

Etapas a serem reproduzidas:

  1. Instale o Adobe Commerce 2.4.6-p1.

    code language-terminal
    m2install.sh -s composer --ee -v 2.4.6-p1
    
  2. Tentar instalar B2B versão 1.4.0.

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

Resultados esperados:

B2B A versão 1.4.0 é instalada com êxito no Adobe Commerce 2.4.6-p1.

Resultados reais:

A instalação falha com o seguinte erro:

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.

Solução alternativa

Instalação ou atualização para B2B versão 1.4.0 no Adobe Commerce 2.4.6-p1 adicionando dependências manuais para o B2B pacote de segurança com um marca de estabilidade.

  1. No diretório de instalação do Adobe Commerce, atualize composer.json com as dependências necessárias:

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

    Saída do comando:

    code language-terminal
    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. Atualizar composer.json para adicionar B2B versão 1.4.0.

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

    Saída do comando:

    code language-terminal
    ./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. Conclua o processo de instalação ou atualização.

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