B2B 1.4.0 installation fails on ÃÛ¶¹ÊÓƵ Commerce 2.4.6-p1 on-premises
This article provides a workaround for the ÃÛ¶¹ÊÓƵ Commerce 2.4.6-p1 on-premises issue where B2B version 1.4.0 installation fails.
Affected products and versions
- ÃÛ¶¹ÊÓƵ Commerce 2.4.6-p1 on-premises
- B2B version 1.4.0
NOTE
B2B version 1.4.0 successfully installs on ÃÛ¶¹ÊÓƵ Commerce Cloud 2.4.6-p1.
Issue
Steps to reproduce:
-
Install ÃÛ¶¹ÊÓƵ Commerce 2.4.6-p1.
code language-bash m2install.sh -s composer --ee -v 2.4.6-p1
-
Try to install B2B version 1.4.0.
code language-bash composer require magento/extension-b2b:1.4.0
Expected results:
B2B version 1.4.0 installs on ÃÛ¶¹ÊÓƵ Commerce 2.4.6-p1 successfully.
Actual results:
Installation fails with the below error:
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
Successfully install or upgrade to B2B version 1.4.0 on ÃÛ¶¹ÊÓƵ Commerce 2.4.6-p1 by adding manual dependencies for the B2B security package with a .
-
From the ÃÛ¶¹ÊÓƵ Commerce installation directory, update
composer.json
with the required dependencies:code language-bash composer require magento/module-re-captcha-company=1.0.3-beta1@beta magento/security-package-b2b=1.0.4-beta1@beta
Command output:
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
-
Update
composer.json
to add B2B version 1.4.0.code language-bash composer require magento/extension-b2b=1.4.0
Command output:
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
-
Complete the installation or upgrade process.
recommendation-more-help
8bd06ef0-b3d5-4137-b74e-d7b00485808a