cancel
Showing results for 
Search instead for 
Did you mean: 

installing extension with composer gives error

SOLVED

installing extension with composer gives error

Trying to install an extension on Magento 2.3. I'm following the guidance at https://devdocs.magento.com/extensions/install/.

 

I downloaded the extension (not from Magento Marketplace) and found the composer.json file. There I found this:

{
    "name": "argoworks/core",
    "description": "Lightspeed Retail Integration",
    "type": "magento2-module",
    "version": "1.0.0.0",
    "license": [
        ""
    ],
    "require": {
        "php": "~5.5.0|~5.6.0|~7.0.0",
        "magento/framework": "^100.0.0"
    },
    "autoload": {
        "files": [
            "registration.php"
        ],
        "psr-4": {
            "Argoworks\\Core\\": ""
        }
    }
}

From the command line of my root Magento directory I ran this:

 
magento_user@ip-177-77-7-777:/usr/share/nginx/html/project-community-edition$ composer require argoworks/core:1.0.0.0        
 
  [InvalidArgumentException]
  Could not find a matching version of package argoworks/core. Check the package spelling, your version constraint and that the package is available in a stability which matches your minimum-stability (stable).
 
Any idea what the problem might be here? Do I need to follow a different procedure?
 
I uploaded the folder containing all the extension files to the "app/code" directory.
 
Thanks.
 
1 ACCEPTED SOLUTION

Accepted Solutions

Re: installing extension with composer gives error

Hi @ed_geis,

Try once without version.

 

composer require argoworks/core

In this method you don't need to copy your code in the magento repo. It will auto copied from repo while composer update command.

composer update 


If you want to copy the code manually.
Then copy your module code in "app/code/Argoworks/Core" directory.

Then run the magento commands.

php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
php bin/magento cache:flush


I hope it will help you!

View solution in original post

3 REPLIES 3

Re: installing extension with composer gives error

Hi @ed_geis,

Try once without version.

 

composer require argoworks/core

In this method you don't need to copy your code in the magento repo. It will auto copied from repo while composer update command.

composer update 


If you want to copy the code manually.
Then copy your module code in "app/code/Argoworks/Core" directory.

Then run the magento commands.

php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
php bin/magento cache:flush


I hope it will help you!

Re: installing extension with composer gives error

Hello @ed_geis 

 

because your auth.json does not match with the marketplace auth.json.

 

So check your auth.json credential the same as your marketplace credential.

 

Hope it will help you.

 

If works then mark solution.

 


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

Re: installing extension with composer gives error

Thank you, it seemed to work fine if I just installed manually without Composer.

 

Sorry for the delay responding. Appreciate the help very much.