cancel
Showing results for 
Search instead for 
Did you mean: 

Stuck in composer

Re: Stuck in composer

remove exec and shell_exec in php.ini

it's work to me.

Re: Stuck in composer

Create a auth.json file on root of your project with following code:

{
    "http-basic": {
        "repo.magento.com": {
            "username":"<public-key>",
            "password":  "<private-key>"
        }
    }
}

Replace your public and private keys in double quotes without arrow signs. That should work.

 

Re: Stuck in composer

facing similar issue.. any solution?

Re: Stuck in composer

Yes, I have tried this.

Thanks for sharing here. 

 

Re: Stuck in composer

Hi,

 

Check your php and composer versions. Only use recommended php version

It could be simply a PHP configuration issue. So use the correct php ini or opcache ini 


Don Udugala

Re: Stuck in composer

Also try adding your auth.json to your composer location.


auth.json should have below. Make sure to have github token too

{
"http-basic": {
"repo.magento.com": {
"username": "<token user>",
"password": "<token pass>"
}
},
"github-oauth": {
"github.com": "<valid github token>"
}
}



I run docker-compose so I add my auth.json to my local composer location

COPY composer/auth.json /var/www/.config/composer/auth.json
Don Udugala

Re: It is the composer. Composer 2.0 doesnt work properly wit...

Perfect worked for me thank you! 

Re: It is the composer. Composer 2.0 doesnt work properly wit...

The documentation on authenticating (even for community editions) is shocking.

https://experienceleague.adobe.com/docs/commerce-operations/installation-guide/prerequisites/authent...

 

Nowhere does it explain how to configure the public/private key pairs for Composer.

Thanks to the suggestions here I was able to install community edition on an Ubuntu server after updating my `auth.json`.

It's honestly embarrassing how poor the documentation is.

 

Re: It is the composer. Composer 2.0 doesnt work properly wit...

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