cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.4.1 - how can I to downgrade to Composer 1?

SOLVED

Magento 2.4.1 - how can I to downgrade to Composer 1?

Hello Everyone !

Hope someone can help me out.

I am new to Magento. I have Magento 2.4.1 installed.

Apparently, my website is using Composer 2, when it should be using 1 in order to install modules.

I tried to install a couple of modules and came across some sort of a warning note...

------

"plugin was skipped because it requires a Plugin API version ("1.0") that does not match your Composer installation ("2.1.0"). You may need to run composer update with the "--no-plugins" option."

-----

The plugin developer replied saying that I should use Composer 1 instead.

How can I downgrade or install COMPOSER version 1 ?... can both work at the same time perhaps ?...  

I read that someone shared the following, but dont know if this actually would work :

$ curl https://getcomposer.org/composer-1.phar > composer1.phar
$ php composer1.phar require <dependency>

Any help on how to solve this, is greatly appreciated !

mt

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Magento 2.4.1 - how can I to downgrade to Composer 1?

To downgrade the composer version you can run this command...

composer self-update version_number

For Example:

composer self-update 1.0.0

View solution in original post

2 REPLIES 2

Re: Magento 2.4.1 - how can I to downgrade to Composer 1?

To downgrade the composer version you can run this command...

composer self-update version_number

For Example:

composer self-update 1.0.0

Re: Magento 2.4.1 - how can I to downgrade to Composer 1?

You can downgrade the composer version by using the below mention command

 ->sudo composer self-update --<version>
For Example if you want to degrade the composer to version 1,then you can use

sudo composer self-update --1