L'installazione di B2B 1.4.0 non riesce in Adobe Commerce 2.4.6-p1 locale
Questo articolo fornisce una soluzione alternativa per il problema on-premise di Adobe Commerce 2.4.6-p1 in cui l'installazione di B2B versione 1.4.0 non riesce.
Prodotti e versioni interessati
- Adobe Commerce 2.4.6-p1 on-premise
- B2B versione 1.4.0
Problema
Passaggi da riprodurre:
-
Installa Adobe Commerce 2.4.6-p1.
code language-bash m2install.sh -s composer --ee -v 2.4.6-p1
-
Provare a installare B2B versione 1.4.0.
code language-bash composer require magento/extension-b2b:1.4.0
Risultati previsti:
Installazione di B2B versione 1.4.0 in Adobe Commerce 2.4.6-p1 completata.
Risultati effettivi:
L’installazione non riesce e viene visualizzato il seguente errore:
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.
Soluzione alternativa
Installazione o aggiornamento a B2B versione 1.4.0 in Adobe Commerce 2.4.6-p1 completato aggiungendo dipendenze manuali per il pacchetto di sicurezza B2B con tag di stabilità.
-
Dalla directory di installazione di Adobe Commerce, aggiornare
composer.json
con le dipendenze richieste:code language-bash composer require magento/module-re-captcha-company=1.0.3-beta1@beta magento/security-package-b2b=1.0.4-beta1@beta
Output comando:
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
-
Aggiorna
composer.json
per aggiungere B2B versione 1.4.0.code language-bash composer require magento/extension-b2b=1.4.0
Output comando:
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
-
Completare il processo di installazione o aggiornamento.