cancel
Showing results for 
Search instead for 
Did you mean: 

Problems installing extension from Marketplace

Problems installing extension from Marketplace

Hi,

 

We're running Magento Open Source 2.1.3.

We have not been able to install extensions from Marketplace using composer.

 

For example we're trying to install Klarna checkout using the following command:

composer require klarna/m2-checkout:3.0.0

 

And we get this output:

Screen Shot 2017-11-07 at 17.50.17.png

 

We're having the same problem we other modules. We know the package name is right because we purchased the module in marketplace and checked that information:

Screen Shot 2017-11-07 at 15.41.57.png

 

We have specified

https://repo.magento.com/ as one of our repositories in our composer.json file.

 

Can anyone give us a tip of what might be the problem?

 

Thank you.

7 REPLIES 7

Re: Problems installing extension from Marketplace

Magento 2.1.3 is not supported (you can run 2.1.2 or 2.1.4 and higher, just not 2.1.3) because it was a very buggy release. Please try upgrading to a newer release of Magento and you should be able to install the module then.

Re: Problems installing extension from Marketplace

Hello @jbalca

 

please create one auth.json into your root folder add below code there

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

 

Then run 

composer require klarna/m2-checkout

If you've found one of my answers useful, please give "Kudos" or "Accept as Solution"

 


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

Re: Problems installing extension from Marketplace

Hello,

 

there are still some issues installing extensions via composer from marketplace.

I bought, for example, Klarna payments and hit:

composer require klarna/m2-payments:5.0.1

I got:

./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for klarna/m2-payments 5.0.1 -> satisfiable by klarna/m2-payments[5.0.1].
    - klarna/m2-payments 5.0.1 requires klarna/module-core 4.2.2 -> no matching package found.

I am sure I got correct public and private keys filled in auth.json file.

The question is, how come no matching package occurs as it should not!

Re: Problems installing extension from Marketplace

Hello @n0kit31 @jbalca

 

Magento 2.1.3 is not supported (you can run 2.1.2 or 2.1.4 and higher, just not 2.1.3) because it was a very buggy release. Please try upgrading to a newer release of Magento and you should be able to install the module then.

 

--
If my answer is useful, please Accept as Solution & give Kudos

Re: Problems installing extension from Marketplace

@gelanivishal I am using the newest stable version 2.2.5 and got this issue

 

Re: Problems installing extension from Marketplace

Hello @n0kit31,

 

I have followed below steps to install Klarna checkout, Please do it.

composer require klarna/m2-checkout
php bin/magento module:enable Klarna_Kco Klarna_Kred Klarna_Dach
php bin/magento setup:upgrade
php bin/magento cache:clean
php bin/magento cache:flush

You can also check out my installation steps in below screenshots

https://www.screencast.com/t/LALrdbsBYQ
https://www.screencast.com/t/1nRhp2eu4PtU

2018-09-19_12-12-07.jpg2018-09-19_12-09-23.jpg

 

Let us know if you have still got an issue.

 

--
If my answer is useful, please Accept as Solution & give Kudos

 

Re: Problems installing extension from Marketplace

Hey @gelanivishal thanks for your reply!

 

The issue in this case is github repository we use (https://github.com/magento/magento2) and Magento project structure I use.

If you clone tag 2.2.x from above repo, you will see that there is no klarna as well as many others module too. However, when you download ZIP package of Magento (https://magento.com/tech-resources/download) you will get all the modules you need and of course Klarna.

I got suspicion that building process of Magento2 github repository has some issues or bugs and that is why you cannot see some of the packages there. I don't want to believe that Magento communty didn't put these modules in repository in purpose.

 

Anyway, thanks for reply. You got kudos :-)