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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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

1
vote
2answers
37 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
61 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
35 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 ...
-1
votes
0answers
33 views

Composer error while installing Drupal 8 [on hold]

After installing Git for windows and Composer for windows locally on my windows 10 machine, i installed drush using a git bash with the following command: composer global require drush/drush:8.* ...
0
votes
0answers
30 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
56 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
52 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
52 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
21 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
25 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
71 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
20 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
31 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
176 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
53 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 ...
1
vote
1answer
78 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
0answers
59 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
54 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
97 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
86 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
84 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
39 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
88 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
31 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
23 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
51 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
238 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
51 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
184 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
131 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
36 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
62 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
61 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 ...
3
votes
1answer
270 views

Composer update Drupal core, 8.5.1 to 8.5.2 Nothing to Install

I am running Drupal 8.5.1, with php 7.2 and a new security update 8.5.2 was just released. Per the documentation, I should be able to update Drupal core with composer. I ran the following command: ...
4
votes
3answers
221 views

How do I include a CSS library in my custom module?

I want to include the YAMM!3 CSS library in my Drupal 8 site. To that end, I wrote a custom module following the instructions in this answer. Although that answer is in regards to a php library, I ...
-1
votes
1answer
18 views

Installing D8 using composer, with LAMPP destination is unclear

Documentation is unclear about the final destination of site. XAMPP looks for site in opt/lampp/htdocs, do I run composer from here? If so will it then create a dir called web with drupal inside that ...
3
votes
1answer
189 views

Drush 9.2 - not working well / not installing with Composer

I am using Ubuntu 17.10 running Apache 2.4 on a Vultr instance. Using virtual host for my.example.com website. Installed Drupal 8.5.1 per recommended Drupal-Composer/Drupal-Project. Apache docroot ...
-1
votes
2answers
98 views

How can I use Drush in a project installed with Composer?

I have installed Drupal 8.5 using composer create-project drupal-composer/drupal-project:8.x-dev my_site_name_dir --stability dev --no-interaction. This command install many files. I found drush-...
1
vote
1answer
128 views

Why doesn't core get updated to 8.5?

I am trying to update via Composer following what reported in Update core via Composer, but when I do composer update drupal/core --with-dependencies, I get the following output. Loading composer ...
0
votes
0answers
62 views

Updated to 8.5.1, but front end says 8.5.0 is installed

I did the update from 8.4.5 to 8.5.x with Composer. I had some issues, but finally got it to work. Now, if I do drush status It says Drupal version : 8.5.1 If I look at the version listed in ...
1
vote
1answer
34 views

How to get project's data from packages.drupal.org

Drupal projects can be searched similarly as Packagist: https://packages.drupal.org/8/search.json?s=projectname https://packagist.org/search.json?q=projectname From Packagist can be also extrated ...
0
votes
1answer
614 views

How do I update core to 8.5?

After I realized that the thing I mostly enjoyed using Drupal for the last 10 years, Drush, is being axed, I started to set up all new Drupal sites with Composer. Unfortunately I can't update core as ...
0
votes
2answers
611 views

Drush migrate commands do not appear after fresh drupal 8 install using composer

I am trying to follow the upgrade using drush tutorial but I cannot get the migrate commands to appear in drush. On a new Ubuntu 16 box I do: #install a new drupal 8 composer create-project drupal-...
0
votes
1answer
72 views

Automate installation with Composer

It was easy to get Drupal installed with a single drush command before: drush si $profile -y \ --db-url=mysql://$MYSQL_USER:$PASS@localhost/$DB \ --site-name=$DOM \...
0
votes
0answers
23 views

Deployment strategy for servers on internal network

I am following composer based workflow for Drupal 8, in which I commit only custom code and use composer install to install it on another environment. However, on new workflow, the dev, test, staging ...
3
votes
1answer
85 views

Cannot do a `composer install` even though my minimum stability is listed as dev

I am trying to build the master branch in my project after updating to 8.5.0, but am being met with an error from composer (which I did not get on my develop branch): The requested package drupal/...
0
votes
1answer
150 views

How to get Drush to work with Composer

We've been using standalone Drush version so far to manage Drupal 7 websites, however the latest Drush version requires to be setup within Composer context. As Greg stated on New Drush install ...
0
votes
2answers
374 views

How do I convert a pre-existing site to a Composer-managed application?

The latest Drush 9.x version recommends that Drupal 8 sites will be built using Composer, with Drush listed as a dependency. However, when you install Composer and Drush globally per step #1 on http://...
0
votes
2answers
164 views

What is the right way of installing?

The http://docs.drush.org/en/master/install page states: Drush 9 only supports one install method. It requires that your Drupal 8 site be built with Composer and Drush be listed as a dependency. ...
0
votes
1answer
107 views

Upgrade Acquia lightning

We have installed Acquia lightning on the website. We have updated the core only for past 1 year, unfortunately now we see lightning and Drupal not compatible in version point of view. Now we got ...