Questions tagged [composer]

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

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

How to exclude contributed modules from being upgraded when we run composer install or composer update?

I want to exclude contributed module Ubercart from being upgraded when we run composer install or composer update ? What change should I add in the composer.json so that it ignores ubercart ...
0
votes
1answer
20 views

Patching docroot htaccess: file not found

I tried to create my first patch file in order to reverse the overwriting of the scaffold file .htaccess after executing composer install. I get the following errors: can't find file to patch at input ...
0
votes
1answer
37 views

Authentication required (git.drupalcode.org)

On Drupal 9, I want to install the Taxonomy menu module using Composer, but I get the following error. Using version ^3.4 for drupal/taxonomy_menu ./composer.json has been updated Loading composer ...
-4
votes
1answer
38 views

Why is drush dl <module_name> removed and how to use composer properly to download modules via the command line now? [closed]

Sorry but I'm a bit out dated on the new composer methods of installing modules. I was used to installing modules via dursh dl webform, but now it seems that we require to use composer require drupal/...
0
votes
0answers
47 views

Fatal error memory limit (always) while installing a module

I am asking for help in solving an extremely annoying problem. I have a simple website based on Drupal 9. Due to its simplicity, the installation of all modules was based on the Drupal UI. I also have ...
0
votes
1answer
49 views

Why does composer remove a folder it doesn't manage

I have the gesso theme installed in themes/contrib, and since I have not subthemed, all my components and templates live in within its folders. For that reason, I do not manage it with composer. I ...
0
votes
1answer
30 views

Deprecated Dependency Warning not removing

In my Drupal 8.9.6 (Installed with Lightning distribution) Status Admin Page, there are three warnings showing after updating several modules and core to the latest versions: DEPRECATED DEPENDENCY: ...
5
votes
1answer
91 views

Require v8 only contrib module with v9 patch

Given I have Drupal 9 composer installation with composer-patches plugin and given a contrib module with a stable v8 release, but no v9 release (not even dev branch) and given that contrib module has ...
0
votes
1answer
124 views

Updating core to 8.9.6 fails

I'v installed Drupal 8 by composer. Everything worked fine, but when I tried to update core from 8.9.1 to 8.9.5 in ended up in 8.9.4. Today I tried to update from 8.9.4. to 8.9.6 by changing composer....
2
votes
0answers
49 views

Updating core with Composer, differences, and why --with-dependencies fails

I'm a Drupal novice and have been playing around with it for the last few months. It seems like every 'how-to' article tells you a different way and a reason not to do it the other way. I am a ...
0
votes
1answer
122 views

Composer killed when installing a module

I am actually running Drupal on a LAMP (XUbuntu 20-04 with 4 GB RAM in VirtualBox) At the beginning of the installation I had no problem with installing dependencies using composer But since yesterday ...
0
votes
0answers
30 views

Composer patches cweagans Core module update syntax - one patch not being applied

I'm using cweagans composer patches: https://github.com/cweagans/composer-patches to patch Drupal 9.x I've made a patch file. The first patch applies but I think I have the path wrong for the core ...
1
vote
1answer
31 views

Problem Trying to upgrade webform to latest version using composer

I've been trying to upgrade webform 5.19 to version 6 using composer but I keep getting this error: Your requirements could not be resolved to an installable set of packages. Problem 1 drupal/...
0
votes
1answer
29 views

Why can't I apply patches in the recommended-project?

I just created a new site and I cannot apply the patches with Composer in Drupal 8.9 Here is my composer.json file : { "name": "drupal/recommended-project", "...
0
votes
0answers
53 views

Update error and Basic Auth / Symfony errors

I'm running 2 servers: TEST and PROD. I've been using Composer to install updates. They are running on Windows Server 2016 using IIS. I copied composer.json and composer.lock from TEST over to PROD. ...
0
votes
1answer
75 views

How do I uninstall and remove Drupal Console from my project?

1 year ago, I installed the Drupal Console module on my site. This module seems to be completely abandoned, so I'm asking my question here. https://www.drupal.org/project/console I had installed this ...
-1
votes
1answer
23 views

Composer file that is only additive [closed]

We have a Drupal 8.x instance maintained by one team and would like to be able to have another team add modules to this without overriding/removing what is already there. Is this possible?
0
votes
0answers
37 views

Applying patch on core module failing

I am trying to apply patch on core module systems. But it is failing with the message "Could not apply patch! Skipping. The error was: Cannot apply patch patches/path-alias-8.9.2.patch". ...
0
votes
0answers
37 views

How do I move a Composer-managed site to a new server? [duplicate]

I have a Drupal 8 site on an Ubuntu 18.04 server and want to move my site to a new server with Ubuntu 20.04. With Drupal 7 I did these steps Create a set of keys (on the new server) : $ sudo ssh-...
0
votes
2answers
52 views

update drupal core from a version to a new version with composer

i want to update the core from 8.7.6 to 8.9.2 and when I try this command "composer require drupal/core:^8.9.2 --update-with-dependencies" i have got an error like below , can anyone help me ...
0
votes
1answer
123 views

Failed updating from 8.8.8 to 8.9.2

I want to update my Drupal website from 8.8.8 to 8.9.2. I have separately tried each of the below: Run composer update Removing both Vendor directory and composer.lock file then run composer install ...
4
votes
2answers
400 views

drupal/core vs. drupal/core-recommended

I've got a question regarding drupal/core and drupal/core-recommended. So drupal/core-recommended uses fixed versions of the packages, which the corresponding core version was tested with. And yes it ...
0
votes
2answers
60 views

How can I create a recommended project in the root directory?

My server consists only one Drupal site and therefore I would like to install it directly under D:\home\site\wwwroot However this seems impossible as the new command composer create-project drupal/...
0
votes
1answer
30 views

Updating drupal/core using composer: “[RuntimeException] Could not delete web/core” (using Lando)

Trying to update Drupal 8 core. composer require drupal/core:~8.9.2 --no-update This works fine. composer -vvv update It fails with the following: - Updating drupal/core (8.8.5 => 8.9.2): ...
0
votes
1answer
114 views

Exception: In BootstrapHook.php line 32, how can I consistently resolve this?

My build process is (mostly working), but sometimes when I swap out to a new project, I am winding up with an error which looks like the output below. I have found this error message extremely ...
0
votes
0answers
63 views

composer require --dev drupal/devel isn't working

I followed the instructions on prkos.hr/Install-Drupal-8-Ubuntu-1404-LTS for installing Drupal 8 and tried to install 'devel module' but had the error composer require --dev drupal/devel [...
0
votes
1answer
37 views

How to install a specifc commit in Composer

The commerce_webform_order module (currently in dev status) recently changed one of its dependencies from Webform 5.x (stable) to Webform 6.x (alpha). I want to temporarily freeze ...
0
votes
0answers
58 views

Install and enable 'Real AES' module: Dependency with Defuse PHP-encryption library

I downloaded the real_aes-8.x-2.2.zip file from the Real AES project page, unzipped and copied it to contrib module folder (/var/www/html/modules/contrib). While trying to enable this module using ...
2
votes
1answer
90 views

I'm unable to install the Symfony var-dumper component

I am having issues installing symfony/var-dumper package via composer the command I ran is composer require symfony/var-dumper The result I get is Your requirements could not be resolved to an ...
0
votes
1answer
32 views

Unable to add patches via composer when we run “composer install” or “composer update”

I am facing an issue wherein I have added a single patch in my composer.json under "extras" "patches": { "drupal/field_validation": { "...
0
votes
1answer
167 views

Why do I get “Nothing to install or update” when I update to latest core version?

Under /admin/modules/update, Drupal core is listed as requiring update from 8.8.8 to 8.9.2. I have started my Drupal installation using the drupal/recommended-project project template and I used ...
0
votes
2answers
47 views

How do I fix these requirement conflicts? [closed]

While updating through composer, I am getting an error from the Webform module. Drupal version 8.9.1 updated. How do I resolve this error? Problem 1 - drupal/webform_node 5.15.0 requires drupal/...
0
votes
1answer
31 views

Install and use Azure SDK

Is it possible to install Azure SDK via Composer within a Drupal site and use it in custom modules? { "require": { "microsoft/windowsazure": "*" } } Also ...
0
votes
1answer
38 views

Site crashes after running 'composer install' to update modules

My website is running Drupal 8.8.x When upgrading to Drupal 8.9.x and then running 'composer install' on production everything seems to install as expected but the site then goes offline with a 500 ...
0
votes
1answer
105 views

Cannot update core with composer after switching to core-recommended

I tried to update core from 8.9.0 to 8.9.1 with composer require drupal/core-recommended:8.9.1 but I get the following error: Your requirements could not be resolved to an installable set of packages. ...
1
vote
1answer
243 views

Can't update to 8.9.1 after migrating from webflo/drupal-core-strict to drupal/core-recommended

I successfully updated my drupal 8.7.8 site to 8.9.0 following the instructions on 'Migrate composer project for Drupal earlier than 8.8.0' Drupal documentation page, section 'Migrating from webflo/...
0
votes
0answers
37 views

Module missing when uninstalling

When I try to uninstall a module using composer I get an error about the same module is missing, but the module exists. For example, if I run this command: composer remove drupal/bamboo_twig I get: ...
2
votes
0answers
113 views

Composer Confusing Messages

I hate composer. I really do. I don't understand it, I cannot get into its logic. I had a development site still on 8.8.0. I updated it using composer require 'drupal/core-recommended:^8.9' --update-...
0
votes
0answers
33 views

Change module location

Somehow while converting my D8 site to a composer based site, I ended up with the modules in the sites/modules folder as well as in the sites/modules/contrib folder. When I delete the module folders ...
0
votes
0answers
31 views

How to specify a patch for dependencies inside a module's composer file?

I would like to know how to specify a patch inside a module's composer file. The scenario is like this: On my Drupal 9 site, I want to run the command composer require module. The module composer ...
1
vote
1answer
54 views

Is it safe to delete the /module folder?

I see that the /module folder still exists and a /module/contrib folder has the updated module folders in it. composer update has updated the site to 8.9 composer update will not update any of ...
0
votes
1answer
36 views

Maintaining libraries on a live site without Composer

I notice this question has been asked several times on here - and each time the answers always seem to involve using Composer one way or another! :-) I get that one can get around shared hosting ...
1
vote
2answers
78 views

Composer updating to 8.9.0beta2 instead of 8.9.0

I'm currently using the drupal/core-recommended project and I'm having issues updating to 8.9.0. Some reason composer is updating it to 8.9.0-beta2. Steps I took to update was go into my composer....
0
votes
1answer
72 views

Can I still start a “stable” D8 project now that D9 is stable? [closed]

Trying to start a new Drupal 8 project today: $ composer create-project --no-install drupal/recommended-project my-recommended-project But this now installs Drupal 9.0.0 instead! :mindblown: So I ...
0
votes
0answers
14 views

Is it possible to get Webform composer.libraries.json requires without using wikimedia/composer-merge-plugin?

Is it possible to get Webform composer.libraries.json requires without using wikimedia/composer-merge-plugin? See an issue in drupal.org mentioning that we shouldn't use merge-plugin. https://www....
1
vote
1answer
128 views

Composer: require dev branch then go back to stable once current dev is stable

Let's say you need a patch in a Drupal module (or core) only included in the dev version yet. It's already commited and should normaly be included in the next stable release. So I'd like composer ...
-4
votes
1answer
40 views

Optimize Drupal Composer Workflow via Gitlab

I have the following workflow for one of my product based on Drupal 8: I use three custom private dependencies via composer ( two modules , one theme) , a lot of contrib modules and obviously drupal ...
0
votes
2answers
74 views

Project directory in Ubuntu

I am trying to get Drupal 8 installed on Ubuntu 18.04. I have installed LAMP and composer. I will install Drupal 8 with this (I think this is the latest recommended way) ... composer create-project ...
0
votes
1answer
65 views

How to remove unused patch

I'm trying, for the first time, to add a patch in composer.json, for a layout builder issue (https://www.drupal.org/project/drupal/issues/3045171#comment-13450756). It's the first time I do it, I see ...
0
votes
1answer
31 views

Composerise Drupal command syntax and starting location

I have 2 sites a dev site and the production site. Need to convert them from drupal/drupal composer sites to the newer format allowing continued support for composer. The syntax is unclear to me as ...

1
2 3 4 5
10