Questions tagged [composer]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
48 views

composer require error: can't delete default.services.yml

using Drupal 8.8.1 composer require drupal/{{ any package }} returns Installation failed, reverting ./composer.json to its original content. [RuntimeException] ...
2
votes
1answer
39 views

Using drupal-scaffold correctly

I am in the process of starting new projects using drupal/recommended-project over the Drupal composer project template. One of the differences I have noted is that the Drupal scaffold tool fires ...
0
votes
1answer
32 views

Impossible to update some modules via Composer

I've updated a D8 website from 8.7 to 8.8.1 with SSH and composer. For some modules (in SSH 3rd column is marked in yellow) it is not possible to update them. I understand that when they are marked in ...
0
votes
1answer
73 views

How can you have Composer install the site in the project root not in web/?

I have downloaded Drupal 8.8 through composer drupal/recommended-project. The downloaded files structure is diff than previous download. Now core and other files are stored in web folder and vendor is ...
2
votes
2answers
106 views

Third-party modules installed with Composer don't have their version in the .info.yml file

I have a project installed by composer, everything working perfectly, except when i run composer install contrib module installed successfully in web/modules/contrib but none of the modules .info.yml ...
0
votes
1answer
32 views

Error guzzlehttp/guzzle ^6.3 -> no matching package found when update from 8.7.9 to 8.8.1

When i tried to update my project using composer from 8.7.9 to 8.8.1 i get the following error: Command: composer update drupal/core --with-dependencies [Composer\DependencyResolver\...
2
votes
0answers
152 views

Class “\Drupal\system\Controller\Http4xxController” does not exist [closed]

I'm using https://github.com/drupal-composer/drupal-project to install Drupal 8. The only thing I've changed in the composer.json is to freeze Drupal core version to 8.8.1 After Drupal installation I ...
1
vote
0answers
42 views

How to refresh Composer install to restore missing (deleted) files

I attempted to install the 8.8.1 Drupal Core security update using the command composer update drupal/core webflo/drupal-core-require-dev --with-dependencies I've used this many times. However, this ...
0
votes
1answer
29 views

How to upgrade to Drupal 8 from 7 with clean install? [closed]

I currently have a Drupal 7 site that I want to install Drupal 8, but do a clean install. This means wiping away everything and starting with a new Drupal 8 instance. I have seen many articles on how ...
0
votes
1answer
50 views

Could not find package with stability dev in a version installable using your PHP version

When I want to install Drupal Commerce using Composer via Git Bash terminal and using the following command: $ composer create-project drupalcommerce/project-base mystore --stability dev I get the ...
2
votes
0answers
59 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
53 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
39 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 ...
1
vote
0answers
31 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
118 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
105 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
38 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
34 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
107 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
122 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
50 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
1answer
34 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=...
1
vote
1answer
42 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
213 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
38 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
95 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 ...
0
votes
1answer
33 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
163 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
114 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
37 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
30 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
561 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
92 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
172 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 ...
1
vote
1answer
374 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
123 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
360 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
788 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 ...
1
vote
0answers
84 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
39 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
112 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
28 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
142 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
158 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
342 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
69 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
381 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", ...