Magento 2 Enterprise – Installation Issues and Solutions

composercredentialsmagento-enterprisemagento2

I am trying to install Magento EE 2.0.2 on my local environment.
I download the version from my magentocommerce account.
When I run the composer install command it is all good except when it start to download magento/module-worldpay composant and I have the common error

Installing magento/module-worldpay (100.0.3)
Downloading: Connecting…
[Composer\Downloader\TransportException]
Invalid credentials for
'https://repo.magento.com/archives/magento/module-worldpay/magento-module-worldpay-100.0.3.0.zip',
aborting.


Note that config work fine with an other Magento 2 CE version on the same environment.

Before downvote my question there is the step I follow :
– classic issue with /Users/{user}/.composer/auth.json file. I put my credentials in :

{
    "http-basic": {
        "repo.magento.com": {
            "username": "<public key from magento commencer account linked to EE>",
            "password": "<private key from magento commencer account linked to EE>"
        }
    },
    "github-oauth": {
        "github.com": "<Github token>"
    }
} 

– I regenerate credentials from magentocommerce account
– I run composer clear-cache

Do I miss something here ?
Is there any further action related to the EE version with the credentials ?

Thank you.


EDIT
As noticed Maddy in answer, the downloaded ZIP include the vendor/ directory with all the Magento Core / dependencies but in my case I work with GIT so I would like to be able to run composer install that I do not have to put the vendor/ directory in my repository.

Best Answer

If you download the zip from magento.com you shouldn't have to run composer install again. You should already have the vendor directory with all the required dependencies. Just go to yourhost/setup and install Magento or install via CLI. Do check for suggested file permissions and users as in documentation.


If you are a contributing developer (making Pull Requests to the code base) you would use magento from git. If you are using shared hosting, use the downloaded zip. if you are a SI/extension dev use composer create-project The differences for each of these approaches and more are explained here: devdocs.magento.com/guides/v2.0/install-gde/continue.html If you are talking about saving an instance of your entire store, assuming you have other modules, it would be better to use the composer create-project and just checking in composer.json and composer.lock and other custom files.

Related Topic