cancel
Showing results for 
Search instead for 
Did you mean: 

Outdated Version of Composer when Updating to Magento 2.4

Outdated Version of Composer when Updating to Magento 2.4

Trying to upgrade from Magento 2.3.5 to 2.4.1 and according to what I see online on devdocs Magento we are supposed to install the composer update plugin using

composer require magento/composer-root-update-plugin=~1.0 --no-update

 

However I am getting an error message

 

Warning from https://repo.packagist.org : You are using an outdated version of Composer. Composer 2.0 is about to be released and the older 1.x releases will self-update directly to it once it is released. To avoid surprises update now to the latest 1.x version which will prompt you before self-updating to 2.x.

 

What should I do? Do I simply ignore this?

2 REPLIES 2

Re: Outdated Version of Composer when Updating to Magento 2.4

Hello @chichitsai0517 

 

This is a general warning of the composer. Once the composer is self-updated, the issue will be resolved.

 

Run the below command:

composer self-update
Thank you.
Problem solved? Click Kudos and "Accept as Solution".
200+ Magento 2 Extensions for Enhanced Shopping Experience.

Re: Outdated Version of Composer when Updating to Magento 2.4

composer command needs an update 

you can update that by the following command 

composer selfupdate