So am trying to install magento 2 with composer. the error message am getting is bellow
[InvalidArgumentException]
Could not find package magento/project-community-edition-2.4.2 with stability stable
please what could be the neccesary solution and steps to go about it.
Thanks
Hello @maintenanc9329 ,
It looks issue with Magento keys, create a new key into Magento marketplace (https://marketplace.magento.com/customer/account/) > Access keys.
If you have already created a key, while installation, Magento will ask for those keys.
If while installing via composer, you are not getting asked for keys, then externally add your keys in composer by below command :
composer.phar global config http-basic.repo.magento.com <public_key> <private_key>
and then install Magento again via composer.
Hope it helps ~