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!
Hi @benwebstraae83
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!
Hello @benwebstraae83
composer remove magento/product-community-edition --no-update
then
composer require magento/product-community-edition:2.3.5-p1 --no-update
composer update
hope it will help you.
Hi @benwebstraae83 ,
If you want to update your Magento version to the latest version (2.3.5-p1). you can follow @Sunil Patel and @Bhanu Periwal comments.
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
composer update
Thanks!
Problem Solved! Click Kudos & Accept as Solution!
You might run into similar issues when dependencies are locked to specific versions. A good approach is to check the compatibility of the required modules before installation. Also, keeping your setup optimized can help in various technical applications, including Best Tig Welder guide, where precision and proper configurations make a huge difference. Always ensure to back up your files before making any major updates.
Ran into a similar Magento composer mess turns out the best SEO agency Birmingham had a dev blog that saved me hours.
Absolutely, you're on the right track by reaching out—Magento 2 module dependencies can definitely be tricky sometimes. It is great that you're being proactive! A couple of things you can try:
Check Version Compatibility – Make sure the Amazon payment module version you're installing matches your Magento 2 version. Sometimes rolling back or upgrading either can resolve conflicts.
Use --ignore-platform-reqs (with caution) – If you're confident your system can handle it, this Composer flag can sometimes bypass strict requirements (though only use it if you're sure compatibility won’t break your setup).
Look for Forked Versions – There might be a community-maintained or updated fork of the Amazon module that works with your Magento version.
Thanks for sharing! Dealing with issues in Composer with Magento 2.3.5-p1 can be really frustrating. I hope you figure it out soon and get everything up and running again.