Questions tagged [composer]

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

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

How can I have "minimum-stability": "stable" in my composer.json and install alpha version of a contrib module?

Trying to update Drupal core to 9.4.7 with composer update "drupal/core-*" --with-all-dependencies, I got 9.5.0-beta1 version. Digging a little in Drupal Answers, I found 'Update installs a ...
  • 982
0 votes
1 answer
18 views

RuntimeException when updating from command line

I went to my website's directory and ran: composer update [RuntimeException] Could not delete /home/example/public_html/example.com/web/sites/default/default.services.yml: ls -la output: -rw-rw-r-- ...
  • 1
-3 votes
1 answer
37 views

How to remove a module with command line?

After uninstalling all relevant modules with drush un I have tried the following input and got the following output, but I don't think I did it correctly. composer remove vendor/panels vendor/panels ...
0 votes
1 answer
33 views

Why does ckeditor_config make it impossible to update Composer packages?

I've got a Drupal 9.4 site that I've upgraded my database stack (XAMPP dev stack) to the latest version that is using php 8.1, but now have package incompatibilities showing up when I try to run "...
0 votes
1 answer
31 views

I cannot update packages because https://www.drupal.org/9/packages.json cannot be downloaded

Trying to do a simple composer update of my core Drupal packages to the latest recommended version, and I'm being hit with a 404 and it won't update. The error Composer spits out when running composer ...
1 vote
0 answers
41 views

Cannot enable file-mapping option in a composer.json to prevent custom edits to be overridden in .htaccess

I have a "drupal/legacy-project" Drupal 9 project (it was packed inside bought custom drupal theme and later updated to latest drupal 9 version) and I need some custom edits in my root ....
  • 11
1 vote
1 answer
73 views

Why do I get the development snapshot?

I am following the instructions given on Updating Drupal core via Composer for users using the drupal/core-recommended package. I have the following lines in the composer.json file. "minimum-...
  • 31
-3 votes
1 answer
53 views

composer drupal-core update fail because of zetacomponents/mail patch

I try to update a Drupalmachine on 9.4.5 site via composer 2.4.1. ~/bin/composer.phar update drupal/core "drupal/core-*" --with-all-dependencies (see below for composer.json) first try i can ...
  • 3
0 votes
0 answers
73 views

I cannot install a module

I have installed a Drupal 8.0.0 local test site in Windows 7 and I am trying to install Devel via Composer, running: composer require drupal/devel:^4.1. I get the following message in the command line:...
  • 49
0 votes
1 answer
68 views

Composer not updating modules in windows [closed]

I'm update drupal core using composer with success. composer update Loading composer repositories with package information Updating dependencies Lock file operations: 0 installs, 9 updates, 0 ...
  • 143
0 votes
1 answer
546 views

Why is composer refusing update 9.4.3 -> 9.4.5

I am trying to update drupal core from 9.4.3 to 9.4.5. Can anyone see why it is not working? I executed composer update -W drupal/core* and it updated drupal/core-composer-scaffold and drupal/core-...
0 votes
1 answer
62 views

After installing webform, unable to use composer

The crux of this matter is that composer is now not working. I get the following when I try to run almost any composer command. (This Drupal 9 site is a composer installed site, and I would like to ...
0 votes
1 answer
60 views

How do you update a module's required library dependency in its composer.json file to a new version?

I'm trying to make a patch for a contrib module so that it will use a new version of one it's "required" vendor libraries. The composer.json is in the module's directory and looks like this: ...
  • 1,027
0 votes
0 answers
34 views

Docker4drupal provides images with drupal files inside php/nginx container, how to have them at my OS file system?

Maybe I just don't get this d4d thing. But why do I even use their docker-compose file if I still need to grab Drupal files from another repo? Using d4d is even more cumbersome than just going ...
  • 266
1 vote
0 answers
195 views

Update to Drupal 9.4 error

I'm trying to update from Drupal 9.3 to Drupal 9.4, and when I ran drush updatedb -y it shows me this error: The command "/pathtoproject/vendor/drush/drush/drush updatedb:status --yes --no-entity-...
0 votes
0 answers
33 views

Create Custom Composer create-project with private BitBucket

I have a private repository on Bitbucket for standing up a new site via composer. This repository contains a composer.json file. This file points to mostly drupal/PROJECT_NAME for version control. I ...
0 votes
1 answer
97 views

How can I add Composer to an existing site?

I have a site running on Drupal 9.3.15 installed from the zip file. I want to use composer and I followed [Add Composer to an existing site1, but I get this error message. Parse error: syntax error, ...
  • 61
1 vote
1 answer
102 views

What does scaffolding files for drupal/core do when I do a composer require <module>?

I noticed that default.settings.php files gets copied to scaffold folder: Copy [web-root]/sites/default/default.settings.php from assets/scaffold/files/default.settings.php Why is it copying this file ...
0 votes
1 answer
20 views

Installing specific git releases via composer

I'm trying to install a specific release version of a library (pdf.js) into my D9 site, to which I've followed this example, and I have this in my composer file "repositories": [ { ...
0 votes
0 answers
58 views

How to version control with Git whilst using composer?

So I've been going through the steep learning curve from D7 to D9. I like to use git for deployment and version control. I'm new to composer as I only know Drupal and it was never used. I've developed ...
1 vote
0 answers
27 views

How can I add a patch to a distribution?

Distributions add patches as links to www.drupal.org / git.drupalcode.org, as these distributions. https://git.drupalcode.org/project/thunder/-/blob/6.3.x/composer.json https://git.drupalcode.org/...
0 votes
1 answer
29 views

How to load a sandbox project via composer and enable other devs on project to commit to the sandbox project

I'm working on an install profile right now in Drupal (https://www.drupal.org/sandbox/jnicola/3277854). I want to while developing the next project we're on also build this out during the initial part ...
  • 71
0 votes
2 answers
70 views

Composer\Downloader\TransportException: The "drupal.org/packages.json" file could not be downloaded (HTTP/1.1 404 Not Found)

In Drupal 8.9.x, After composer cache-clear. I am getting this error [Composer\Downloader\TransportException] The "drupal.org/packages.json" file could not be downloaded (HTTP/1.1 404 Not ...
0 votes
0 answers
35 views

unapplied patch reinstall the drupal core

I've upgraded a site from d8 to d9. And I'm rewarded with this error : - Applying patches for drupal/core https://www.drupal.org/files/issues/2021-03-15/...
-2 votes
1 answer
85 views

Error when installing Rules with composer

I've tried to install the latest Rules via composer on drupal 9.3.9. I am new to composer. I uses "composer require 'drupal/rules:^3.0@alpha'" and got a similar error that on issue https://...
-1 votes
1 answer
309 views

Why cannot I upgrade?

I'm currently working on upgrading a Drupal site from Drupal 8.9.7 to Drupal 9. I'm getting this error when I run lando composer require "drupal/core:^9.3.8" --with-all-dependencies. Your ...
-4 votes
1 answer
54 views

Unable to apply a user.module Core patch in Drupal 7.x site using Composer [closed]

I have a patch https://www.drupal.org/files/user_reset_password_privacy-1521996-10.patch, which is to be applied to user.module using Composer. I have added the URL under "patches" as well. &...
0 votes
1 answer
54 views

Including modules in Git repository [duplicate]

Non core third party modules are maintained in modules directory in the Drupal root directory. Should this directory be added to the .gitignore file? If a module is upgraded in a Staging system then ...
  • 3
0 votes
0 answers
160 views

Composer update Error after Composer-Update from 1 to 2

My Linux had a Composer upgrade to Composer version 2.1.9. No problem with the newly set up Drupal. Only I still have an older Drupal lying around, which I now also wanted to update Composer 2 and ...
0 votes
0 answers
61 views

System updates, now config page errors, drush ends abnormally

After an update failed I'm seeing the following issues. I have tried several things to recover. I do have a database backup, but I am not sure on how to restore using Drush (and I'm concerned because ...
  • 121
0 votes
0 answers
221 views

"composer install" works during upgrade but the autoload file is missing in the vendor directory

I am upgrading a Drupal 8 site to Drupal 9. I removed the core, vendor, modules, and contrib directories; I ran composer install. All went well, but when I refreshed the page, I saw the following ...
1 vote
2 answers
152 views

How do I install my own, custom module dependant on Composer?

I've looked all over, but there seems to be no advice on this online. I've recently updated a Drupal 8 site to Drupal 9. I wasn't using composer before, and so I've used composerize-drupal to make the ...
0 votes
1 answer
103 views

Applying a patch - how? [duplicate]

Im trying to install Radix on Drupal 9 (Drush 10) - Installation keeps failing in composer / drush en radix and I have tracked it down to a current "bug" (or atleast a closed bug now) which ...
  • 173
0 votes
1 answer
411 views

How to Fix drush installation - path or alias to drupal root

I had 10.6.2 working - on Centos 7 and today it is just GONE. I had to remove phpunit and apparently it took the drush pathing setup for drush with it. Now it says it is installed but the command is ...
1 vote
0 answers
41 views

Install newer packages without conflicting with core-recommended?

Is there a way to install third party packages without conflicting with core-recommended? Example: Your requirements could not be resolved to an installable set of packages. Problem 1 - spatie/...
  • 26.9k
2 votes
1 answer
170 views

drupal-scaffold composer append robots.txt

We recently upgraded to Drupal 9.3.0 with the composer layout. Each time we execute composer update the contents of robots.txt is overlayed with the file located in core/assets/scaffold/files/robots....
  • 533
0 votes
0 answers
258 views

Composer Remove leaves files and references in composer.lock

I'm trying to update my site from D8 to D9 and there are a few modules I no longer need and am trying to get rid of. I run composer remove drupal/varbase_core and it removes it from my composer.json, ...
0 votes
0 answers
201 views

LDAP integration not working with Drupal 9 (using Ludwig as a composer alternative - was working under Drupal 8)

I 'm having a problem since updating to Drupal 9, with regards to LDAP integration. Previously, while on Drupal 8, I had successfully integrated my schools LDAP for users authentication, using the ...
  • 169
0 votes
1 answer
119 views

Tarball 9.3.0 to Composer 9.3.0

We have a large production website running 8.9.20 with a Tarball directory format. We would like to make the jump to 9.3.0 and convert the site from Tarball to Composer directory format. I performed ...
  • 533
3 votes
0 answers
29 views

How do I add a dependency on a forked project? [duplicate]

I've hit a bug that requires a patch to composer.json. There's a patch in the issue queue, but it hasn't been merged yet. How do I update my composer.json to depend on the forked version of the module?...
  • 27.5k
0 votes
1 answer
141 views

Installing the dependencies of local modules without composer merge plugin

Currently I have a composer-based Drupal project with both third-party and custom modules. Third-party modules are managed by composer without any issues. But I would like my custom modules to declare ...
  • 1,144
1 vote
1 answer
140 views

Add Composer to an existing site

I built a Drupal 8.9 site with Composer on a DEV server and copied the files (& db) over to the LIVE server. The LIVE server did not have Composer installed previously so I installed it, locally. ...
  • 82
0 votes
1 answer
77 views

Is it possible to use WSL-based Drush on a Windows 10 XAMPP and if so how?

I currently use Drupal 9 but concepts about Drupal 10 may be useful. I use Windows 10 Home with XAMPP and C:/xampp/htdocs is my web application root. I want to establish a minimal Drupal development ...
  • 11
1 vote
1 answer
70 views

Uploading local files via composer

I'm using composer to manage a Drupal 9 instance. I'm brand new to composer and have no idea what i'm doing. That being said, I've successfully set it up and have used it to install modules and an ...
  • 11
0 votes
1 answer
50 views

Upgrading to Composer 2 blocked by Symfony dependecies

I have an existing Drupal 8.9.16 site which uses Composer 1 (and Commerce 2.24). I am trying to upgrade to using Composer 2 using this guide: https://www.drupal.org/docs/develop/using-composer/...
  • 937
-3 votes
1 answer
444 views

Upgrading from 8.9.19 to 9 fails because of root composer.json require (^8.8.0)

My upgrade is failing. I am at 8.9.19 and I used upgrade-status to make sure all my modules are compatible with next major core version. I am following instructions at https://www.drupal.org/docs/...
  • 399
0 votes
2 answers
60 views

What's the best way to migrate from manual upgrades to composer updates?

I have an 8.9.19 installation that I would like to move over to use composer. What's the best way to migrate the installation to use composer upgrades? Manual installations are becoming a real pain.
  • 1,973
2 votes
1 answer
184 views

Is there any problem with installing composer globally?

I have a VPS and will be hosting a mixture of drupal 8 and drupal 9 sites. I need to install composer to manage the sites. Is there any need to install composer in a project folder or can I just ...
0 votes
0 answers
22 views

Unable to inherit profile

I am trying to create a custom installation profile which will use standard as a base profile. So I created the customprofile.info.yml as below: name: 'Custom profile' core_version_requirement: '^9' ...
2 votes
1 answer
1k views

Trouble with the upgrade of core 8.9 to 9.2

We are in the process of migrating to Drupal 9, and I am having nothing but problems with composer and trying to get Drupal core updated. I have provided my composer.json file, and a HUGE list of ...
  • 161

1
2 3 4 5
12