I'm trying to install a module through composer but it seems that the Magento 2 requirements for the Amazon payment module are not able to be satisfied. Any ideas how I can get round this?
bash-4.2$ composer require xtento/module-stockimport Using version ^2.9 for xtento/module-stockimport ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages. Problem 1 - The requested package magento/product-community-edition (locked at 2.3.4, required as 2.3.5-p1) is satisfiable by magento/product-community-edition[2.3.4] but these conflict with your requirements or minimum-stability. Problem 2 - Conclusion: remove magento/product-community-edition 2.3.5-p1 - Installation request for magento/product-community-edition 2.3.5-p1 -> satisfiable by magento/product-community-edition[2.3.5-p1]. - Conclusion: don't install amzn/amazon-pay-and-login-magento-2-module 3.3.1 - magento/product-community-edition 2.3.5-p1 requires amzn/amazon-pay-and-login-magento-2-module 3.4.1 -> satisfiable by amzn/amazon-pay-and-login-magento-2-module[3.4.1]. - Can only install one of: amzn/amazon-pay-and-login-magento-2-module[3.3.1, 3.4.1]. - Can only install one of: amzn/amazon-pay-and-login-magento-2-module[3.4.1, 3.3.1]. - Installation request for amzn/amazon-pay-and-login-magento-2-module (locked at 3.3.1) -> satisfiable by amzn/amazon-pay-and-login-magento-2-module[3.3.1]. Installation failed, reverting ./composer.json to its original content.
Nevermind, fixed this with a composer update!
Try this :
composer require magento/product-community-edition:2.3.5-p1 --no-update composer require tig/postnl-magento2 --no-update composer update
It may help you to resolve issue.
If issue resolve, please click on 'Kudos' & Accept as Solution!
composer remove magento/product-community-edition --no-update
composer require magento/product-community-edition:2.3.5-p1 --no-update
hope it will help you.
Hi @benwebstraae83 ,
But if you only want to install a new module on the same Magento version, try below command
composer require xtento/module-stockimport --no-update
Problem Solved! Click Kudos & Accept as Solution!