Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Use it for questions about the PHP application library dependency manager (Composer).

-2
votes
0answers
19 views

Is there a command to update all sites under, for example, /var/www/html? [on hold]

On my LAMP (Ubuntu 18.04) environment I've installed Composer globally via: curl -sS https://getcomposer.org/installer -o composer-setup.php php composer-setup.php --install-dir=/usr/local/bin --...
0
votes
1answer
26 views

The missing modules don't get installed after updating with Composer

To update a site locally, I cloned the code base with git to my local computer and imported the database, then ran "composer update --with-dependencies", there were no errors, then I went to /web ...
0
votes
0answers
16 views

Do I have to update symfony?

I've upgrade my core from 8.6.1 to 8.6.2 with composer (the installation have not been done with composer, so I add drupal/core in composer with this command: composer require drupal/core:8.6.2 --...
3
votes
2answers
84 views

Disabling module with config sync and removing with composer

I have an issue disabling modules, I've searched but cannot find something useful: - Developer A disable module and via composer remove it - I pull his changes so i run composer install that remove ...
0
votes
1answer
22 views

Composer update

I had an existing Drupal 7 website already running. I downloaded a template composer.json file https://github.com/drupal-composer/drupal-project/blob/7.x/composer.json , to be able to run composer ...
-1
votes
1answer
22 views

Adding composer to update core [duplicate]

I'm using a site created on Pantheon and now I'm not using pantheon. So the core is not installed with composer. Now I want to upgrade core with composer but I don't understand how. I've some ...
4
votes
1answer
143 views

How to patch your htaccess file correctly in composer.json

After running composer update my Drupal installation gets updated, but it also changes the content of the .htaccess file each time. How can I correctly patch it?
-4
votes
3answers
166 views

Did the Drush developers went “back and forth” when combining it with Composer?

If I'm not wrong about 4 or 3 years ago Drush was combined with composer, then it was "decombined" with it, till Drush 9 when they were recombined. If I'm accurate, why did this combine-decombine-...
0
votes
0answers
13 views

How to move/migrate a drupal/drupal install to a drupal-composer/drupal-project install [duplicate]

I always use "drupal-composer/drupal-project" to install my Drupal projects with composer. But now I have received a complete website, built with "drupal/drupal" which is depricated. Is there a way of ...
1
vote
2answers
48 views

How to use Composer to install third party libraries [duplicate]

All I thought Composer takes care of any external library a contrib module requires automatically. I tried installing one, Composer took care of all its dependency modules, but not so much with the ...
-1
votes
0answers
13 views

Composer error UnexpectedValueException “phpspec/prophecy”

Whenever I try to run composer on my current project it returns the error: [UnexpectedValueException] Could not parse version ...
0
votes
1answer
116 views

Updating core from 8.4.4 to 8.6.1

I want to update Drupal from 8.4.4 to 8.6.1. I've tried to follow the steps from this page, but without success. When I run this command: composer update drupal/core --with-dependencies I get: ...
0
votes
1answer
43 views

Composer's drupal/drupal package versus Composer's drupal/core package - deciding which to choose

I never used Composer before the year 2018 in any significant way but as Drupal 8 was developed with a Composer-centralized philosophy, I'm out to start basing all my Drupal projects (which I usually ...
0
votes
1answer
37 views

Upgrading from 8.3.7 to 8.4 conflicts with acquia/blt-project

In the composer.json file I added "drupal/core": "~8.4" to the required section. When I run composer update drupal/core --with-all-dependencies, I get the following output. Loading composer ...
0
votes
2answers
86 views

How to update core and all modules and themes from CLI?

On a LAMP environment I have a Drupal 8.5.6 website which is nearly all-core with the Bartik theme and a few stable contrib modules. Nothing is customized and I have daily backups so I don't "fear" of ...
1
vote
1answer
56 views

Include third party library in custom module without composer

I have zero command line access to a remotely hosted drupal site so I'm unable to run composer. My custom module requires the ryanwinchester/hubspot-php package. Is there any way I can manually add ...
0
votes
1answer
24 views

How to install required packages for feeds spreadsheet module as shown required by Composer Manager?

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. ...
0
votes
0answers
43 views

How come Drupal Console is not downloading all commands?

When adding Drupal Console using Composer, we are finding that the list of commands is not complete. How can I resolve the issue? Installation steps: change to root directory (/local/path/drupal-...
1
vote
2answers
80 views

8.5.6 Update not being recognized

I converted a Drupal 7.xx site to Drupal 8.x manually. Updated it to 8.4.5 and tried to use composer to update it to 8.5.6 (Latest stable release). I have the original site as the public_html/drupal ...
0
votes
1answer
129 views

Updating core from 8.5.4 to 8.5.6

I'm trying to update Drupal core to lasted version with composer update drupal/core --with-dependencies. I followed the instructions given on Update core via Composer, but Composer claims there is ...
0
votes
1answer
36 views

Where are backups stored?

I have used https://github.com/drupal-composer/drupal-project to install a new website. I have now updated the core with the same information on the above link. I was wondering where the backups are ...
0
votes
0answers
37 views

Drush 9 bails out with fatal error

I have expanded the tar archieve from version drupal-8.5.5 and wanted to get drush running. I have changed into the drupal-8.5.5/core sub-directory and have run composer require drush/drush The ...
3
votes
1answer
75 views

Composer package is updated, but core still asks to update

I am using Drupal 8.5.5. On admin/modules/update I red the following message. Bootstrap (Theme) Bootstrap (Theme) 8.x-3.11 update to 8.x-3.12 (Release notes) The composer.json contains the following ...
3
votes
2answers
73 views

Can no longer run “composer require drupal/swiftmailer”

I have a module that relies on swiftmailer, and needs the libraries installed. Whenever I've needed to install swiftmailer libraries to a Drupal environment, I've always run this command: composer ...
-1
votes
2answers
120 views

Missing commands in drush 9.3 [closed]

I have installed drush 9 as dependency of my drupal 8 project as explained in: http://docs.drush.org/en/master/install/ cd ${D8_PROJECT} composer require drush/drush Then, I have installed drush ...
0
votes
1answer
32 views

composer install error

I can't install anything because of this error: [RuntimeException] Could not scan for classes inside "/app/vendor/symfony/serializer/src/" which does not appear to be a file nor a folder and ...
0
votes
1answer
33 views

Update manually installed modules

I have installed Drupal Commerce 2 through composer as mentioned in https://docs.drupalcommerce.org/commerce2/developer-guide/install-update/installation after that, I have installed a few modules ...
0
votes
2answers
129 views

Why is Drupal Core not updating via composer?

We realized that our Drupal core version is outdated by two versions. We are currently running 8.5.3, but 8.5.5 has been released. Rather than updating directly two versions, we wanted to upgrade from ...
1
vote
1answer
28 views

Composer require drupal/ packages doesn't work

If I run... composer require drupal/token ...I get... Could not find a version of package drupal/token matching your minimum-stab ility (dev). Require it with an explicit version constraint ...
1
vote
1answer
82 views

Composer doesn't see that updates are needed

My Drupal version is 8.5.1, and yet when I run... composer outdated drupal/* It says "nothing to install or update". What to do? This is the relevant part of my composer.json... "require": { ...
0
votes
1answer
295 views

How to update from Drupal core 8.5.0 to 8.5.5?

In the past (Drupal 7), security-only update via drush was simple as: drush up --security-only now, Drush 9.3 returns: Command "up" is ambiguous. Did you mean one of these? ... composer does ...
0
votes
1answer
83 views

Using Drush on a Drupal 8 site installed via Composer

I had a Drupal 8 project installed from Drupal 8 sources what had been downloaded from Drupal 8 site. Recently I heard a good thought that it would be more comfortable to have the project originally ...
3
votes
1answer
231 views

Error: Class 'Drush\Sql\Sql' not found

This is my first attempt at installing Drupal using Composer. I have successfully installed Composer and the Drupal Project template, which comes configured with Drush. To install I use composer ...
2
votes
1answer
113 views

Trouble adding modules with Composer

I created a Drupal 8 site through the manual install process and configured the site through the admin UI for a while. However, I quickly discovered how critical it was to use Composer to add modules ...
1
vote
0answers
63 views

Drupal install with composer (drupal-project)

I have used option A to install Drupal 8 on server: https://www.drupal.org/docs/develop/using-composer/using-composer-to-manage-drupal-site-dependencies https://github.com/drupal-composer/drupal-...
1
vote
0answers
147 views

Drush not installed via Composer

When I run composer require drush/drush It gives below error Using version ^9.3 for drush/drush ./composer.json has been updated Loading composer repositories with package information Updating ...
3
votes
2answers
181 views

How to install with composer external library that drupal module depends on

Module bootstrap_languages depends on external library of same name how do we ask composer to require the external library that needs to go to libraries/bootstrap_languages folder The project's ...
0
votes
1answer
131 views

Address Module 8.x-1.3

I am trying to run address field on my web page, but I get an error The website encountered an unexpected error. Please try again later. So I checked the logs and get Error: Class 'CommerceGuys\...
0
votes
1answer
72 views

Vendor directory vs. Modules directory. What are the key differences?

I've seen articles that instruct developers to add docroot/vendor to the .gitignore but if I require a module with composer and push up that module, will that cause a huge error on the site I'm ...
0
votes
1answer
117 views

Drupal 8 - Drush composerRequireDrupal8 error

System: Ubuntu 14.x Drupal: 8.x Drush: 8.x I recently have installed Drush using composer global require drush/drush:dev-master code and it got installed successfully. I ran command which drush ...
1
vote
1answer
34 views

use PHP library in Custom Controller

I have a custom module and in its controller i am using 'namespace + classname' format to included QRCode library (which is in root/vendor/). I have used composer to install library Now I am trying ...
0
votes
1answer
31 views

how to adjust installer path in JSON file to customize vendor dir

Before using 'composer install' I edit extra installers paths. Example: edit /web to /a-custom-docroot folder where is placed core, modules and all other folders. When possible I would like to ...
2
votes
2answers
69 views

Composer does not install Calendar Module

Hi I am having trouble migrating my local site to development (two seperate servers). I believe the reason being is because I can not install an unstable Calendar Module, which I have on my local but ...
2
votes
2answers
283 views

Drush on production server without Composer

I want Drush 9 on a Drupal 8 production server without having to install Composer. Is there any way to do this? And if that is not possible, can anyone suggest an alternative to Drush especially for ...
0
votes
2answers
60 views

Why does RELAXed Web Services Not appear in the module list?

I have created a new Drupal 8 site with docker. I created it with composer and installed the drupal/deploy and relaxedws/replicator modules. The drupal/deploy module and all of its dependencies seem ...
2
votes
1answer
296 views

Installing an alpha dev version with composer

Block class module has a 8.x-1.x-dev version. Installing using the recommended command from the specific release page composer require 'drupal/block_class:1.x-dev' installs a versionless ...
1
vote
1answer
274 views

How to require a JS library in a composer.json file

I'm trying to require a 3rd-party JS library in my module. Unfortunately, the library is not available as a composer package. I tried to define the library in my module's composer.json file like the ...
1
vote
2answers
37 views

Do these options affect other modules and possibly core?

I have a question about downloading an unstable version of a module using composer. I run composer require 'drupal/page_manager:^4.0' but I get this error message. The requested package drupal/...
0
votes
0answers
81 views

WSOD , Autoload.php, Composer, and Two /Vendor directories

I'm going to try to be as thorough as possible. I have an AcquiaCloud-hosted Drupal site with 3 environments, dev, staging, and production. My team uses Acquia DevDesktop to work on this site. The ...
1
vote
1answer
65 views

drush8 for D7&D8

I posted the below on the Drush git, but I got redirected here. So here we go :). With the recent core update I installed drush8 on all of my websites and updated 24 cores, both D7 and D8, using ...