I am trying to update my Magento 2.3.0 installation to the latest version Magento 2.4.6 using Composer. However, when running the command:
composer require-commerce magento/product-community-edition 2.4.6 –no-update
I encounter the following error messages:
Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in phar:///usr/local/bin/composer/src/Composer/Autoload/AutoloadGenerator.php:879
Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in phar:///usr/local/bin/composer/src/Composer/Autoload/AutoloadGenerator.php:884
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? yes
[SymfonyComponentConsoleExceptionCommandNotFoundException]
command “require-commerce” is not defined.
I am unsure what is causing this issue and how to fix it. Can someone please provide guidance on successfully updating Magento from version 2.3.0 to version 2.4.6 using Composer? Your help would be greatly appreciated.
Thank you!