skip to Main Content

I have recently purchased an extension from the Magento 2 Marketplace and have downloaded the zip file from the downloads page as well. Now I want to install this extension through command line using composer.json because of the extension’s dependency on other 3rd party libraries.

If I just create a folder inside app/code and copy this extension there, the extension doesn’t work. I have also tried to copy the extension in app/code and then run “composer install” in the extension directory which creates a “vendor” directory with required files inside the extension directory. But somehow the downloaded extension is still not able to find the required libraries and classes.

The only option I can see is to do composer require and add the package in the core Magento 2 composer.json file but since the 3rd party extension is in private Github repository I cannot download the extension directly.

Any help in this regard would be appreciated.

2

Answers


  1. After uploading the extension folder into your app/code folder, run the following commands to install the extension:

    php bin/magento setup:upgrade
    
    php bin/magento setup:static-content:deploy
    
    Login or Signup to reply.
  2. Sometimes

    php bin/magento setup:upgrade
    php bin/magento setup:static-content:deploy
    

    is not enabling the module by default. Check if it is registered and enabled via

    php bin/magento module:status
    

    if you find it under disabled modules use

    php bin/magento module:enable Vendor_Module
    

    to enable it and run upgrade and compile commands again.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search