- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2021
04:34 PM
06-22-2021
04:34 PM
[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
Labels:
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2021
08:54 PM
06-22-2021
08:54 PM
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 !
