Questions tagged [composer]
Use it for questions about the PHP application library dependency manager (Composer).
631 questions
-2
votes
0
answers
71
views
Upgrade gives Composer errors
I'm trying to upgrade to Drupal 11 with composer require drupal/core-composer-scaffold:11.2.5 drupal/core-recommended:11.2.5 --with-all-dependencies and I'm getting these errors.
Problem 1
- Root ...
0
votes
0
answers
103
views
How can I update when an unsupported Composer plugin is used?
I get this error message when I use Composer to update.
Your site cannot be automatically updated until further action is performed. An unsupported Composer plugin was detected.
drupal/core-recipe-...
1
vote
1
answer
128
views
How can I fix "Composer was not found. Syntax error" when enabling Automatic Update for Drupal 11 on Ionos Shared Hosting?
I use Ionos shared hosting and I have a fresh Drupal 11 site and I am trying to setup the Automatic Update functionality.
When I first installed composer Ionos instructions said to prefix the composer ...
0
votes
1
answer
415
views
Error when trying to upgrade from D10 to D11 with Composer
Working on a local Windows environment, with Composer 2.8.8 and PHP 8.4.6.
I'm trying to upgrade a Drupal site from 10.4.6 to 11.1.0 (or higher).
The site was initally running Drupal 10.1.4 and I've ...
0
votes
1
answer
52
views
Why core and contrib modules are installed only in vendor?
I've a Drupal 8 installation, I don't understand why core and contrib files are download, with composer install, in vendor directory.
EDIT: with this file, after clone the repository, core and contrib ...
-1
votes
1
answer
71
views
Published a tag for new module in drupal.org but its not available in composer
We have published a new tag for the newly created module in drupal.org https://www.drupal.org/project/override_cache_control_headers. But the composer require command is missing in drupal.org page. ...
0
votes
0
answers
86
views
How can I install the Drupal PM (Project Management) module?
I'm trying to install the Drupal PM (Project Management) module, which says to work with Drupal 10 and 11, on Drupal 11.1.
When I try to install it with Composer (composer require 'drupal/pm:4.1.x-dev@...
-1
votes
1
answer
363
views
New DrupalCMS composer path issue
Does anybody know how to fix this error message?
Composer was not found. The error message was: The composer executable cannot be found. Make sure it's installed and in the $PATH
I'm on cPanel. I ...
-1
votes
1
answer
80
views
Why doesn't specifying `||` in a Composer version constraint install both versions at the same time?
I'm following Drupal guidelines for upgrading D9 to 10, they recommend installing 2 versions of a module if the new version is D10-only like so:
"drupal/module_filter": "^4.1 || ^5.0&...
1
vote
0
answers
48
views
Why does this module dev release from a fork require Drupal 11.1.0?
This is a composer question, though the intersection of .info.yml and in general it being useful to know how to handle Drupal.org forks with composer may likely be useful information for the Drupal ...
0
votes
1
answer
32
views
Drupal/mailsystem installed but menu item still not showing up on the menu screen
Hello I'm a bit of a Drupal newbie (long time admin but new to drupal). I tool over management of some existing sites. I'm trying to add the mail systems menu item to configure an SMTP relay and doesn'...
0
votes
1
answer
132
views
Composer installation for Drupal module failed
I am trying to install Commerce POS on a fresh Drupal 10 installation but composer is showing an error !
Steps I went through
Install latest Drupal 10 version (10.3.10) via composer using:
composer ...
0
votes
0
answers
151
views
What is the right way to reapply a patch?
I've created a patch with a bunch of redirects for the htaccess file. The workflow is as follows.
I apply changes to htaccess, save it.
Then I git diff > patches/htaccess.patch
Then I commit and ...
0
votes
1
answer
132
views
How can I force Composer to read the dependent library package from jFrog Artifactory?
We are encountering an issue where we want to download packages from JFrog Artifactory instead of the internet.
We are able to route the composer root and dependent packages from JFrog Artifactory; ...
0
votes
1
answer
101
views
My created contrib theme not available from composer require, but release created on project page and on git.drupal.org - what's incorrect/missing?
I've created a contrib theme project page https://www.drupal.org/project/thisisme and pushed code to git.drupal.org and created releases.
But I can't get the module using composer require, e.g.
...