I was trying to upgrade Magento from ver. 2.3.4 to ver. 2.4.6
I have followed the below steps, mentioned below as step by step:
1- Enabled the Maintenance Mode: By using Terminal, i go in to the bin path and run the command
php magento maintenance:enable
which makes it enable and Terminal Shows the message:
Enabled maintenance mode
2- Run Upgrade Magento 2.4.6: Then i run the below command to run the upgrade from Terminal,
composer require magento/product-community-edition 2.4.6 --no-update
But it Gives a below Error:
The "magento/magento-composer-installer" plugin was skipped because it requires a Plugin API version ("^1.0") thatdoes not match your Composer installation ("2.6.0"). You may need to run composer update with the "--no-plugins" option. The "magento/inventory-composer-installer" plugin was skipped because it requires a Plugin API version ("^1.1") that does not match your Composer installation ("2.6.0"). You may need to run composer update with the "--no-plugins"option. The "dealerdirect/phpcodesniffer-composer-installer" plugin was skipped because it requires a Plugin API version ("^1.0") that does not match your Composer installation ("2.6.0"). You may need to run composer update with the "--no-plugins" option.
along with following success message aswell
./composer.json has been updated
So to match the Composer Version i have Downgraded the composer as below:
[root@36]# composer self-update --1 --no-plugins
which shows me following success message
Warning: You forced the install of 1.10.27 via --1, but 2.7.1 is the latest stable version. Updating to it via composer self-update --stable is recommended. Upgrading to version 1.10.27 (1.x channel). Use composer self-update --rollback to return to version 2.7.1
then i retry to upgrade Magento 2.3.4 to 2.4.6 again as below:
composer require magento/product-community-edition 2.4.6 --no-update
But now i am getting a below Error to upgrade composer to 2
Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/ ./composer.json has been updated
Please help what i am doing wrong??
Facing the same, any one can help?