cancel
Showing results for 
Search instead for 
Did you mean: 

Issues installing purchased extension via composer

Issues installing purchased extension via composer

Hi all,

 

I am attempting to install the extension magetrend/pdf-templates via composer. I purchased the extension via the magento marketplace. My magento version is 2.4.2 and composer is 2.1.5, using php version 7.4. I logged the verbose output of composer, and this is what I see:

 

Downloading https://repo.packagist.org/p2/magetrend/pdf-templates.json
Downloading https://repo.packagist.org/p2/magetrend/pdf-templates~dev.json
[404] https://repo.packagist.org/p2/magetrend/pdf-templates.json
[404] https://repo.packagist.org/p2/magetrend/pdf-templates~dev.json
Downloading https://packagist.org/search.json?q=magetrend/pdf-templates&type=
[200] https://packagist.org/search.json?q=magetrend/pdf-templates&type=

                                                                                                                                       
[InvalidArgumentException]                                                                                                           
Could not find a matching version of package magetrend/pdf-templates. 
Check the package spelling, your version constraint and that the package is
available in a stability which matches your minimum-stability (dev).

Seems that the package cannot be found on packagist.org's repo. I'm not sure why it's checking that repo for an extension I had to purchase from the Magento Marketplace. Any idea why composer cannot find the package? Please advise.

1 REPLY 1

Re: Issues installing purchased extension via composer

Hello @jlopezduff09cf ,

Please check your auth.json for the correct credentials to connect with the Marketplace.

or  create one auth.json into your root folder if not there add the below code 

{
   "http-basic": {
      "repo.magento.com": {
         "username": "<public-key>", // get from magento (make sure you purchase from same account)
         "password": "<private-key>" // 
      }
   }
}

and after adding this file run command 

composer require magetrend/pdf-templates

Thank you 
If problem solved accept as a solution and click kudos