Adobe Commerce 2.4.6-p1 オンプレミスで B2B 1.4.0 のインストールが失敗する

この記事では、バージョン 1.4.0 のインストールに失敗したオンプレミス環境のAdobe Commerce 2.4.6-p1B2B 問題の回避策を提供します。

影響を受ける製品とバージョン

  • Adobe Commerce 2.4.6-p1 オンプレミス
  • B2B バージョン 1.4.0
NOTE
B2B バージョン 1.4.0 が Adobe Commerce Cloud 2.4.6-p1 に正常にインストールされました。

問題

再現手順 :

  1. Adobe Commerce 2.4.6-p1 をインストールします。

    code language-terminal
    m2install.sh -s composer --ee -v 2.4.6-p1
    
  2. B2B バージョン 1.4.0 をインストールしてみます。

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

期待される結果 :

B2B バージョン 1.4.0 がAdobe Commerce 2.4.6-p1 に正常にインストールされました。

実際の結果 :

インストールが失敗し、次のエラーが表示されます。

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.

回避策

stability tag を含む B2B セキュリティパッケージの手動依存関係を追加して、Adobe Commerce 2.4.6-p1 に B2B バージョン 1.4.0 を正常にインストールまたはアップグレードした。

  1. Adobe Commerce インストールディレクトリから、必要な依存関係を使用して composer.json を更新します。

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

    コマンド出力:

    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. composer.json を更新して B2B バージョン 1.4.0 を追加します。

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

    コマンド出力:

    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. インストールまたはアップグレードのプロセスを完了します。

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