This article provides a workaround for the Adobe Commerce 2.4.6-p1 on-premises issue where B2B version 1.4.0 installation fails.
B2B version 1.4.0 successfully installs on Adobe Commerce Cloud 2.4.6-p1.
Steps to reproduce:
Install Adobe Commerce 2.4.6-p1.
m2install.sh -s composer --ee -v 2.4.6-p1
Try to install B2B version 1.4.0.
composer require magento/extension-b2b:1.4.0
B2B version 1.4.0 installs on Adobe Commerce 2.4.6-p1 successfully.
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.
Successfully install or upgrade to B2B version 1.4.0 on Adobe Commerce 2.4.6-p1 by adding manual dependencies for the B2B security package with a stability tag.
From the Adobe Commerce installation directory, update
composer.json with the required dependencies:
composer require magento/module-re-captcha-company=1.0.3-beta1@beta magento/security-package-b2b=1.0.4-beta1@beta
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 to add B2B version 1.4.0.
composer require magento/extension-b2b=1.4.0
./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.