0

enter image description here
Modules being used
Composer Manager
Feeds Spreadsheet

Requirement
I need to install the package as mentioned in the configuration page of module composer manager.
The error shown is as given below.

Composer's install command must be run to generate the autoloader and install the required packages.
Refer to the instructions on the Composer Manager project page for installing packages.

I have access to Cpanel but don't have command line access right now, how can I install the required packages?

1 Answer 1

2

You essentially have 2 options:

  1. Ask your hosting provider to let you install and run Composer, and access it via the command line
  2. Run the Composer install locally, then push all the files up (including the vendor folder)
5
  • I am not sure if its a silly question, can you mention exactly which files should be pushed to the live? is the vendor folder under root directory and are there any other files which I need to move?
    – harshal
    Commented Sep 7, 2018 at 12:53
  • 1
    You'll have to inspect your own environment to know for sure, the vendor path is configurable. IIRC I've seen it in /sites/default/files/vendor or similar when previously using Composer Manager. As far as composer is concerned that's all you should need to push up (though pushing composer.json and composer.lock into version control would be wise)
    – Clive
    Commented Sep 7, 2018 at 12:58
  • so from your comments I see only thing which needs to be moved is the vendor directory (probably under sites/default/files/vendor) and no need to move composer.json and composer.lock ? is that right?
    – harshal
    Commented Sep 7, 2018 at 13:00
  • 1
    I wound up ripping this module out on a D7 project and just using Composer and a deployment method. Do note that this requires editing index.php to require the autoloader.
    – Kevin
    Commented Sep 7, 2018 at 17:33
  • One hurdle was fixed , when 1) I downloaded all the root directory locally 2) ran the command composer init 3) Ran the command composer install 4) copied vendor folder from the root which was generated and placed it inside sites/all/vendor This helped me show that package was installed, now will check if that helps,Thanks @Kevin
    – harshal
    Commented Sep 7, 2018 at 17:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.