在Adobe Commerce 2.4.6-p1內部部署上安裝B2B 1.4.0失敗
本文提供B2B版本1.4.0安裝失敗的Adobe Commerce 2.4.6-p1內部部署問題的因應措施。
受影響的產品和版本
- Adobe Commerce 2.4.6-p1 內部部署
- B2B 1.4.0版
NOTE
B2B 1.4.0版已成功安裝在 Adobe Commerce Cloud 2.4.6-p1 上。
問題
要再現的步驟:
-
安裝Adobe Commerce 2.4.6-p1。
code language-bash m2install.sh -s composer --ee -v 2.4.6-p1
-
嘗試安裝B2B 1.4.0版。
code language-bash 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.
因應措施
藉由為具有穩定性標籤的B2B安全性套件新增手動相依性,在Adobe Commerce 2.4.6-p1上成功安裝或升級至B2B版本1.4.0。
-
從Adobe Commerce安裝目錄,使用必要的相依性更新
composer.json
:code language-bash composer require magento/module-re-captcha-company=1.0.3-beta1@beta magento/security-package-b2b=1.0.4-beta1@beta
命令輸出:
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
-
更新
composer.json
以新增B2B 1.4.0版。code language-bash composer require magento/extension-b2b=1.4.0
命令輸出:
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
-
完成安裝或升級程式。
recommendation-more-help
8bd06ef0-b3d5-4137-b74e-d7b00485808a