cancel
Showing results for 
Search instead for 
Did you mean: 

Could not find package magento/project-enterprise-edition with stability stable.

Could not find package magento/project-enterprise-edition with stability stable.

I got stuck at this erro, help me to resolve the same 

[InvalidArgumentException]
Could not find package magento/project-enterprise-edition with stability stable.

 

Following the steps mentioned here

http://devdocs.magento.com/guides/v2.1/install-gde/bk-install-guide.html

3 REPLIES 3

Re: Could not find package magento/project-enterprise-edition with stability stable.

In my experience this is due to the account you are using not having access to download the enterprise (commerce) edition.  If you are supposed to have access then you may need to contact Magento to grant it on your account.

 

If you are working on a client with Enterprise access, for example, and your personal account doesn't have access you can set up new Access Keys on their account and then use the public/private keys as your user/pass in your composer auth config.  On my Mac that file is located at ~/.composer/auth.json

Re: Could not find package magento/project-enterprise-edition with stability stable.

Hi, I've come across the same error, however I do have the public/private keys for the project.

 

The Magento2 installation documentation (https://devdocs.magento.com/guides/v2.3/install-gde/composer.html) suggests I will be prompted to give the credentials but I don't. Creating an auth.json file in the directory where I want to install Magento Commerce does not change anything.

 

Have you got any ideas?

 

EDIT: SOLVED!

 

OK so in my case it was that composer was not asking me for the credentials, and the ones I creaded in auth.json (in the directory where I wanted to install Magento) were not pulled in. Based on an answer found here: https://magento.stackexchange.com/a/90985/76224 I added the keys to the global config and this fixed the issue for me.

Re: Could not find package magento/project-enterprise-edition with stability stable.

The problem is with composer, You need to update the Magento enterprise keys in composer using the below commands, because composer is not asking for the keys:

 

Try this:

composer global config http-basic.repo.magento.com <public_key> <private_key>

If you are using sudo then try:

sudo composer global config http-basic.repo.magento.com <public_key> <private_key>