cancel
Showing results for 
Search instead for 
Did you mean: 

composer error upgrading 2.3.3 to 2.4

SOLVED

composer error upgrading 2.3.3 to 2.4

Upgrading Magento 2.3.3 to 2.4

Composer version 1.10.19

Php 7.4

 

Following this guide which shows errors on step 3

Step 3: Install the Composer update plugin

1
2
3
composer require magento composer root update-plugin ~1.0 --no-update
 
composer update
1 ACCEPTED SOLUTION

Accepted Solutions

Re: composer error upgrading 2.3.3 to 2.4

@Sheba ,

seems like your composer is using php7.2 

to update that you can use the following command to get a new composer.phar within your webroot 

php -r "readfile('https://getcomposer.org/installer');" | php

now you can use the following command to use composer 

php composer.phar update

kindly Accept as a solution if this works for you and give Kudos. Smiley Happy 

 

View solution in original post

5 REPLIES 5

Re: composer error upgrading 2.3.3 to 2.4

@Sheba ,

seems like your composer is using php7.2 

to update that you can use the following command to get a new composer.phar within your webroot 

php -r "readfile('https://getcomposer.org/installer');" | php

now you can use the following command to use composer 

php composer.phar update

kindly Accept as a solution if this works for you and give Kudos. Smiley Happy 

 

View solution in original post

Re: composer error upgrading 2.3.3 to 2.4

Hello @Sheba 

 

Magento 2.4 modules are compatible with PHP 7.4, upgrade your php version and try again.

 

Hope it helps !

Problem Solved ? Click on 'Kudos' & Accept as Solution to encourage to write more answers !

Re: composer error upgrading 2.3.3 to 2.4

Thanks! Smiley Happy

Re: composer error upgrading 2.3.3 to 2.4

Thanks for your suggestion.  What path on webroot should I be to run command?

Re: composer error upgrading 2.3.3 to 2.4

you can run these commands on the Magento root folder