Alert!
Trying to install a Magento 2 extension or a library but bummed with an error?
This is the error you get when you don’t respect the Magento 2 system requirements.
It may happen that you do not have the required PHP version.
You can bypass the dependency error while installing an extension or library using composer in Magento 2.
Check below to read how?
Method to bypass dependency error while installing an extension/library using composer in Magento 2:
If you run the below command, you’ll face the error
composer require stripe/stripe-php:^6
However, if you run the below command, you can avoid the error:
composer require stripe/stripe-php:^6 --ignore-platform-reqs
That’s it.
So simple, isn’t it?
You can bypass any PHP dependency error or similar errors using this trick!
Also read: Error in Compat.php While Installing Magento 2
Do not forget to share the solution with fellow Magento developers via social media.
Thank you.