cancel
Showing results for 
Search instead for 
Did you mean: 

[InvalidArgumentException] Could not find package magento/project-community-edition-2.4.2 with sta

[InvalidArgumentException] Could not find package magento/project-community-edition-2.4.2 with sta

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 

1 REPLY 1

Re: [InvalidArgumentException] Could not find package magento/project-community-edition-2.4.2 with

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 ~

Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy