Questions tagged [composer]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
17 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
21 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
54 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.1. I have started my Drupal installation using the drupal/recommended-project project template and I used ...
0
votes
2answers
28 views

How do I fix these requirement conflicts?

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
30 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
32 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
72 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. ...
0
votes
1answer
104 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
32 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: ...
1
vote
0answers
43 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
30 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
29 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
52 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
34 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
1answer
54 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
68 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
11 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
100 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
33 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
68 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
38 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
24 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 ...
-2
votes
1answer
36 views

Why isn't the module shown as updated?

I updated a module with Composer and it shows updated in the composer.json file. However, on Available updates, it still shows the old version is installed. I ran update.php and nothing changed. ...
1
vote
0answers
42 views

Patch gets not applied to Drupal locally in DDEV built with Composer from the Drupal Git repo

I try to build a local workflow to be able to review patches for core. I am using DDEV for the local environment. Steps I have taken: git clone https://git.drupalcode.org/project/drupal.git . ddev ...
2
votes
1answer
35 views

Download D7 module using Composer for D8?

I'm using Drush 10, and I can't use dl to download a module, since the command was removed to push Composer use. Is there a way for me to download a Drupal 7 module into a Drupal 8 site using Composer,...
0
votes
1answer
31 views

Adding repositories in contrib module composer.json?

Is it possible to add repositories from a module's composer.json instead of a project's composer.json? I've got the following set up: Commerce Recurly (sandbox) - and its composer.json Recurly ...
1
vote
1answer
62 views

How to troubleshoot entity error

How can I tell which entity is throwing this error (on all pages)? TypeError: Argument 4 passed to Drupal\views\Plugin\views\display\Block::__construct() must implement interface Drupal\Core\...
2
votes
1answer
136 views

Cannot install Composer because it doesn't contain any .info.yml files

Newbie using clean Drupal 8 install on a server. Installed module "International Telephone," but got error. Then I read that I needed to also install Composer. When I tried to install Composer, I ...
0
votes
1answer
44 views

Is there a way to tell composer about manually updated modules?

I am working on a drupal 8 site and tend to update some modules: I run the composer outdated 'drupal/*' command and it shows me the list of modules need update. Running composer update drupal/...
0
votes
1answer
72 views

Updating from core 8.7.9 to 8.8.0

I'm running into an issue when updating to Drupal core 8.8.0. I've removed both the vendor folder and the composer.lock file, as per instructions on this link https://www.drupal.org/node/2700999#s-...
1
vote
1answer
70 views

Composer issue after I deleted the vendor directory

We have Drupal 8.8.5 running on CentOS Linux 7 with PHP 7.1.33. Was trying to update modules using composer. Composer said they were updated, but when I went into program, they weren't. In ...
0
votes
1answer
33 views

Creating a drupal-composer/drupal-project gave me an outdated version of core

When I ran composer create-project drupal-composer/drupal-project:8.x-dev mysite --no-interaction it installed drupal/core:8.8.0-alpha1. Then to see what was wrong, I ran composer prohibits ...
1
vote
0answers
42 views

How do I install Drush 9 without Composer? [duplicate]

I'm using the Drupal image for Docker to test module development. I also want to use Drush to automate certain tasks. However, the Drush 9 installation instructions state that the only supported ...
0
votes
2answers
80 views

How to install latest stable Drupal version from drupal/recommended-project branch?

I've forked drupal/recommended-project and run composer install from the default branch (8.8.x), it installed the latest dev version (8.8.6-dev). There's also a tag 8.8.5 (latest stable as of now) ...
0
votes
0answers
109 views

webflo and behat issue preventing patch via composer

I am attempting to install a patch for the smtp module on a Drupal 8.8.4 vagrant dev instance. Trying to do so fails with the following error: Your requirements could not be resolved to an ...
0
votes
1answer
51 views

Composer cannot delete .editorconfig

I'm trying to install a third-party library in Drupal 8 by doing 'composer update'. I get this: I have made it seemingly impossible for it not to be able to delete .editorconfig: But I still get the ...
0
votes
0answers
20 views

For “drupal/recommended-project”, Handling the Relocated Root without Override Document Root

I am in the process of switching my website over from extracting a tar.gz file to using composer. But now, I don't know how to handle the fact that the site is now located at public_html/web. In my ...
0
votes
1answer
39 views

How do I resolve a unresolved dependency error after using Composer to install modules?

I'm going to pull my hair out if I stare at this problem any longer. I've seen the similar questions and tried everything but I can't fix this issue with module dependency versions. I'm using ...
10
votes
2answers
1k views

Command to install Drupal 9 with Composer

The latest version of Drupal 8 can be installed via Composer with the following command: composer create-project drupal/recommended-project mynewproject What is the equivalent command to install the ...
1
vote
0answers
30 views

How to reference a submodule in composer.json file?

I just learned now that you should not include composer.json files in submodules. But can I have a reference to a submodule as a dependency? Imagine I have a module named AAA with a submodule named ...
-1
votes
1answer
58 views

Installing drupal/recommended-project fails at installing coder

running composer install with the Drupal 8 recommended setup fails when installing coder with authentication message or similar. Does somebody else have this behavior? Workaround was to run composer ...
0
votes
0answers
138 views

Is it possible to update/remove/install 1 package with composer without updating everything?

I have seen a few posts answering this and saying that "composer require package" or "composer update package" will do this; but absolutely everything i do with composer attempts to update everything ...
0
votes
1answer
34 views

How to set in my own module dependency on a composer package?

I have some of my own modules written on Drupal 7 that use composer packages. These composer packages are downloaded with the module Composer Manager. How can I set explicitly the dependency on a ...
0
votes
0answers
70 views

What is the correct way to 'fix' a site originally installed an developed using Composer, but deployed using FTP?

I have put together a site using the Drupal Varbase distribution. To do this I installed using composer, this is my first project using Composer. Now that I'm done in development I'm working on ...
-1
votes
1answer
80 views

Composer require got killed [closed]

I'm working on a live site and I'm trying to install a module using composer, but the proccess is killed. I found out that is due to server RAM. So, I am unable to work with composer, is there any ...
1
vote
0answers
26 views

How to allow drupal/core-composer-scaffold to copy files in dev but not live site

How can I have drupal/core-composer-scaffold behave differently when doing composer install on my live and my dev sites? my live site's sites/default directory and its contents are write-protected. ...
0
votes
1answer
44 views

How can I prevent composer from detaching a module's head?

How can I prevent composer from leaving a module's git status as a "detached head" when updating Whenever I use composer to install or update one of my modules or themes, it downloads and overwrites ...
0
votes
1answer
96 views

Install using Composer doesn't create .htaccess file

Followed instructions at (https://www.drupal.org/docs/develop/using-composer/using-composer-to-install-drupal-and-manage-dependencies) to install Drupal with Composer using the command: "composer ...
3
votes
1answer
100 views

Error “The module ldap does not exist” after composerizing project

I've inherited a tarball-based Drupal 8.7.8 project. I'm moving it to new hosting, and assuming responsibility for updates and maintenance. After updating core to 8.8.2, and updating all contrib ...
0
votes
1answer
128 views

Update packages conflicting with core update

When updating drupal core via composer, you often get problems like: Problem 1 - Installation request for drupal/core 8.8.2 -> satisfiable by drupal/core[8.8.2]. - Conclusion: remove ...

1
2 3 4 5
9