Hi, I' trying to install an extension via composer but there is trouble with other packages being the wrong version. Here is what I get:
[abc26196@*****.com]$ composer require magento/product-community-edition:2.4.3 ./composer.json has been updated Running composer update magento/product-community-edition Loading composer repositories with package information Info from https://repo.packagist.org: #StandWithUkraine In Laminas\DependencyPlugin\DependencyRewriterV2::onPrePoolCreate Updating dependencies Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires magento/product-community-edition 2.4.3 -> satisfiable by magento/product-community-edition[2.4.3]. - magento/product-community-edition 2.4.3 requires magento/magento2-base 2.4.3 -> found magento/magento2-base[2.4.3] but the package is fixed to 2.4.2 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command. Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions. Installation failed, reverting ./composer.json and ./composer.lock to their original content. [abc26196@*****.com]$ composer require magento/product-community-edition:2.4.3 -W ./composer.json has been updated Running composer update magento/product-community-edition --with-all-dependencies Loading composer repositories with package information In Laminas\DependencyPlugin\DependencyRewriterV2::onPrePoolCreate Updating dependencies Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires magento/product-community-edition 2.4.3 -> satisfiable by magento/product-community-edition[2.4.3]. - magento/product-community-edition 2.4.3 requires league/flysystem ^2.0 -> found league/flysystem[2.0.0, ..., 2.5.0] but these were not loaded, likely because it conflicts with another require. Installation failed, reverting ./composer.json and ./composer.lock to their original content. [abc26196@*****.com]$
How do I best go about solving these conflicts? Any help is appreciated, thanks!
We are using CE 2.4.2
Hello @Bkrzbts
Please try your composer's latest version.
Run the self-update command to update the composer to the latest version.
It will replace your composer.phar with the latest version.
php composer.phar self-update
Please follow the below steps to install the Magento 2 extension (2.1.7)
Composer updates
If you find our reply helpful, please give us kudos.
An award-winning North American Magento Development Agency That Delivers Powerful Results, Innovation, and Secure Digital Transformation.
WebDesk Solution Support Team
Get a Free Quote | | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789
Thank You,
WebDesk Solution Support Team
Get a Free Quote | Email | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789
Location: 150 King St. W. Toronto, ON M5H 1J9
Thanks for your useful reply!