How to Bypass Dependency Error While Installing an Extension/Library Using Composer in Magento 2
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:
1 |
composer require stripe/stripe-php:^6 |
However, if you run the below command, you can avoid the error:
1 |
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
Did you like it? Any doubts? Please mention them in the Comments section below. I’d be happy to help.
Do not forget to share the solution with fellow Magento developers via social media.
Thank you.
Sanjay Jethva
Sanjay is the co-founder and CTO of Meetanshi with hands-on expertise with Magento since 2011. He specializes in complex development, integrations, extensions, and customizations. Sanjay is one the top 50 contributor to the Magento community and is recognized by Adobe.
His passion for Magento 2 and Shopify solutions has made him a trusted source for businesses seeking to optimize their online stores. He loves sharing technical solutions related to Magento 2 & Shopify.
Prev
How to Translate Product Attributes And Attributes Options in Magento 2
Changes Coronavirus is bringing in E-commerce Customer Engagement [Experts Opinion]
Next