Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [composer]

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

Filter by
Sorted by
Tagged with
0
votes
2answers
33 views

Composer requirement

I have been installing/managing Drupal 8 sites without the use of Composer or Drush. Main reasons being that I'm not planning to have complex modules with dependencies and I'm comfortable to perform ...
2
votes
0answers
56 views

Dealing with installed modules/extensions in composer packages removed from composer.json [duplicate]

I had brought up a similar question on StackOverflow, but it hasn't gotten much traction because of a lack of understanding of Drupal, I think. The issue we are experiencing happens when a developer ...
2
votes
1answer
40 views

How do I Install an earlier version of Drupal 8 with composer because install fails on server with PHP 5.6?

My server is using PHP version 5, therefore, I need to install Drupal 8 version 8.6.18. But when I try, composer create-project drupal-composer/drupal-project:8.x-dev my_site_name_dir --no-interaction ...
2
votes
1answer
20 views

drush migrate-upgrade “[debug] key_value table not found. Database may be empty.”

I am trying to migrate a D7 site to D8 following the steps found here . Once I can manage it and make sure I have all the PHP components, Drupal modules and etc. I have 4 sites to update, and one ...
0
votes
0answers
23 views

I get error message ErrorException when trying to install module [closed]

I try to run a module install with composer require 'drupal/calendar:1.x-dev' then I get the error message ErrorException /_files directory not empty. I tried to remove the directory but same error ...
1
vote
0answers
28 views

How do Install and use packages from Packagist? [closed]

I would like to install use kamermans/guzzle-oauth2-subscriber in my Drupal 8 build. I ran composer require kamermans/guzzle-oauth2-subscriber which put the package in mysite/vendor/kamermans. The ...
0
votes
1answer
57 views

Steps to update vendor files after pulling changed composer.lock file

Let's say I work in a group and somebody else did composer update and pushed changed composer.lock file. I pulled it and now I have to do update too, to match the files from changed lock file. In ...
0
votes
2answers
50 views

Updating Drupal project using Composer fails

I have site (which is originally installed also with composer) with drupal core version 8.7.2. I'm trying to update it to latest 8.7.8. When I do: composer outdated "drupal/*" I get the list of all ...
0
votes
0answers
20 views

How to install the appointments module with composer?

I am trying to install the appointments module, but running composer require drupal/appointments fails because some 3rd party libraries are not installed. I am using the drupal-project composer ...
0
votes
1answer
32 views

Odd problems with Drupal 8.7.7 and drupal/jsonapi 2.4.0

I share a release branch with a team of developers and I am the only one having this problem locally (see below). $ git reset --hard origin/2019-Oct-R2 HEAD is now at 8e5cec59b1 WWW-1599 update spoke ...
0
votes
1answer
30 views

Moving “vendor/” in a different location and symlinking it breaks drush

I'd like to have vendor/ moved out of the Drupal 8 root and symlink it. Composer doesn't have any problem with that (all commands work) but when I issue any drush command, even drush --version, it ...
1
vote
0answers
42 views

Drush cannot connect to the database when updating

I am trying to update Drupal from version 8.7.5 to 8.7.7. I installed Drupal using composer and had a really old version of Drush that I had installed from apt-get. I uninstalled the old version and ...
1
vote
1answer
104 views

Updating without Composer

I've previously used Drush to update my Drupal-installations. They are installed without using Composer, and currently on version 8.7.3. However, when I try to use Drush (drush v8.1.15, using drush up)...
0
votes
1answer
33 views

How can we just apply the updates to a single module using composer without apply patches for other modules?

We have the following composer.json file. When we want to update a module such as Environment Indicator, we run the suggested composer command composer require drupal/environment_indicator:^3.7'. ...
0
votes
0answers
20 views

Composer\Exception\NoSslException

I installed Drupal8 using Xampp and I see that drupal is in the directory g:\xampp\apps. When I use the command line "composer require drush/drush" I get the error shown in the title. The extension=...
0
votes
1answer
39 views

Why would I provide a composer.json for my modules?

I’ve come across several Drupal7 modules that include a composer.json. It seems that this somehow influences how Drupal-CI determines test dependencies. Now I’m trying to find out whether it’s worth ...
1
vote
1answer
87 views

How to install multiple modules with composer at once? [closed]

Let's say we need to install these 2 modules : composer require 'drupal/redirect:^1.4' composer require 'drupal/pathauto:^1.4' I couldn't find the correct syntax so I've tried this but it doesn't ...
-3
votes
1answer
37 views

How do I deploy a site?

I am following this link to set-up a Drupal 8 site, I am installing drupal-composer/drupal-project as a template for my composer install for the first time, as I forced myself into drupal 8 for future ...
1
vote
1answer
52 views

Is there a way to update custom packages with composer?

The project is using Drupal 8 composer template to manage dependencies. Some of the packages are defined locally to look like Drupal modules and be installed in a specific location. An example could ...
1
vote
1answer
31 views

Composer update still shows an older version of a module

Updating dependencies according to these instructions offers an older version of the module. Composer.json file has the package required as "drupal/h5p": "^1.0@RC", and it used to update just fine. It ...
1
vote
2answers
45 views

Composer update - Your requirements could not be resolved to an installable set of packages

when I run a composer update --with-dependencies, I get the following error message: Problem 1 - don't install drupal/core 8.6.0|remove drupal/drupal dev-master - don't install drupal/core 8....
1
vote
1answer
87 views

Composer using old JSON for contrib module?

I maintain skilling, a contrib module. This... composer require drupal/skilling ... reports... [RuntimeException] Could not load package drupal/skilling in https://packages.drupal.org/8: [...
-1
votes
2answers
36 views

Patch Status for 'cweagans/composer-patches'?

It seems that 'Drush Patch File' (https://bitbucket.org/davereid/drush-patchfile/src/master/) isn't compatible with Drush 9. It, however, has one important function - Patch Status - which enables ...
0
votes
1answer
19 views

How to include a patch to a JS library?

I'm using the Superfish library in my Drupal 8.7.x project. I included it in composer.json like this: "repositories": [ { "type": "composer", "url": "https://packages....
1
vote
2answers
181 views

How to install a specific version of Drupal using Composer

Composer always installs the latest version of Drupal core, I want 8.6 not 8.7. How can I achieve this?
-2
votes
1answer
52 views

Git merge issues with Composer.lock [closed]

We have a simple setup. We update our drupal 8 sites on a local machine using composer update we commit the lock file and json file and push to a gitlab git repo We then pull to a staging server ...
0
votes
1answer
118 views

Recommended Drush version to use and install for Ubuntu 19 with PHP 7.2 and running Drupal 7

It's been awhile since I've upgraded my server and I'm setting it up from scratch. I'm using Ubuntu 19, apache 2 and PHP 7.2. My site is Drupal 7 which is still running php 5.6 in my old server. I'm ...
2
votes
1answer
214 views

Don't re-apply patches when requiring new module?

I keep running into the issue that, when requiring a new module with composer, existing packages are removed and reinstalled if they have patches defined in composer.json. For instance: $ lando ...
0
votes
0answers
30 views

Skip updating certain themes/modules on composer update

My setup is composer driven. I have overridden some module with patches and customised a contributed theme (boostrap_sass). Now I want to avoid overbidding these modules and theme when I perform ...
0
votes
0answers
47 views

How to distribute/share a drupal 8 project/product?

I have a site that I've built with Drupal 8, using composer and git to manage the codebase. It's a fairly simple site that includes a handful of contrib modules, a few custom views, and a custom theme....
1
vote
0answers
98 views

Managing custom themes and modules using composer or git

If I am managing my drupal 8 site using the Composer workflow, how should I go about incorporating/managing custom themes and modules? Let's say I have a custom theme that I manage using gitlab. Do ...
0
votes
1answer
277 views

The following SSH command responded with a non-zero exit status (drupal-vm)

My environment: Vagrant 2.2.4 VirtualBox 6.0.6r130049 ansible 2.7.10 config file = None Mac OS Mojave (10.14.4) I use drupal-vm to build my local development environment. I cloned this repo and ...
0
votes
2answers
601 views

Composer update failure

I am trying to update a site to Drupal 8.7 and getting a weird set of errors. Can someone point me to how to best diagnose and fix the problem? Here are the steps that I am taking: When I try to ...
0
votes
0answers
58 views

Using Composer in a multisite installation

How do I manage modules via composer in a multisite architecture? For example, if I want one site to have version 2.3 of a module, and another to have version 2.4, how do I do this? Do I have a ...
1
vote
0answers
38 views

Change module from manual to composer installed

Note: This is not a duplicate of The site has a mix of modules installed manually and via Composer: Can I move all to Composer? As this question below involves different folder locations. I currently ...
1
vote
1answer
83 views

Composer.json deletes dir even with preserve path

I am running composer on Drupal 7 and I am just trying to update my site; however when I run composer update, the composer deletes all the preserve paths I had specified. My structure is as follows: ...
0
votes
2answers
27 views

Custom drupal module does not appear on the extend page

I have created a custom module, yet it does not appear on the extend page. I have my_new_block.info.yml file in modules/custom/my_new_block/: name: My New Block description: Create own blocks. ...
0
votes
0answers
120 views

Why is composer trying to install the Drupal 8.2.x-dev branch?

UPDATE: I am not going to continue to troubleshoot this. Composer is working OK in my local site, so I'm going to change my approach to deployment and stop running composer in my staging site. ...
0
votes
0answers
115 views

Unable to apply patch

I am unable to apply patch using composer in Drupal core 8.6.4. Can anyone help me to apply patch using composer? Here is the process what I am doing : { "name": "drupal/drupal", "description": "...
1
vote
1answer
213 views

Revert back to the previous dev version of a module using composer

Current last dev release of the Field Group module for drupal 8 was out on (29 Mar 2019). However, I need to download the previous dev version before the dev version release mentioned above. The last ...
1
vote
1answer
65 views

Site works ok but composer complains about unmet requirements. Do I have a problem?

UPDATE: I am not going to continue to troubleshoot this. Composer is working OK in my local site, so I'm going to change my approach to deployment and stop running composer in my staging site. ...
1
vote
2answers
350 views

composer won't update 8.6.13

I can't update Drupal 8 from 8.6.10 to 8.6.13 -- please help! composer.json -- partial "require": { "composer/installers": "^1.0.24", "wikimedia/composer-merge-plugin": "^1.4", ...
4
votes
1answer
69 views

Host doesn't support nested folder structures for deployment. How do I adjust Composer?

So, I have to deploy a drupal 8 site to a host which doesn't provide functionality to specify an entry point for a Drupal site which is nested below the site root folder. How can I update the folder ...
0
votes
2answers
862 views

Core doesn't update with Composer

We use commands: composer outdated drupal/* drupal/core 8.6.10 8.6.13 Drupal is an open source content management platform powering millions of websites and applications. It does show 8.6.13. We ...
0
votes
1answer
50 views

updates page shows an error for a mystery module 'standard 8.6.12'

on the updates page /admin/reports/updates under Modules there is a module called standard 8.6.12 as and it is highlighted with a warning No available releases found (Warning) this module does not ...
0
votes
2answers
126 views

How to successfully follow Drupal.org's instructions for updating via composer [duplicate]

In following the instructions at https://www.drupal.org/docs/8/update/update-core-via-composer, prior to updating core from 8.5.3 to 8.6.12, when I attempt to go through the list of available module ...
1
vote
1answer
103 views

Composer- Is it possible to make a patch that modifies a module's composer.json?

I want to confirm some behavior of Composer to see if this is a limitation of Composer or something I did wrong. This is based on an issue in the Markdown module queue. Basically, here's the issue. ...
0
votes
2answers
81 views

Can not update drupal/core with composer

Can not update drupal/core to 8.6.11 composer prohibits drupal/core:8.6.11 shows webflo/drupal-core-require-dev 8.6.10 requires drupal/core (8.6.10) How can I solve it ??
0
votes
1answer
327 views

Resolve composer update drupal/core 8.6

When i try to run composer update it results to the following problem: Your requirements could not be resolved to an installable set of packages. Problem 1 - don't install drupal/core 8.6.0|...
4
votes
1answer
818 views

Does “composer remove drupal/module” actually uninstall the module first?

Does composer remove drupal/module actually uninstall the module first, especially in multi-site environments? On the other hand, does composer require "enable" the given module for all sites?