Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [composer]

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

0
votes
1answer
3 views

how to download an alpha version with composer

when i run composer require drupal/uswds it does not download this contributed theme, because https://www.drupal.org/project/uswds only has alpha and beta versions. what would be the correct command ...
0
votes
1answer
13 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
39 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
27 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
45 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
44 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
164 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", ...
4
votes
1answer
67 views

Host doesn't support nested folder structures for deployment. How do I adjust Composer?

So, I have to deploy a drupal 8 site to a host which doesn't provide functionality to specify an entry point for a Drupal site which is nested below the site root folder. How can I update the folder ...
0
votes
2answers
180 views

Core doesn't update with Composer

We use commands: composer outdated drupal/* drupal/core 8.6.10 8.6.13 Drupal is an open source content management platform powering millions of websites and applications. It does show 8.6.13. We ...
0
votes
1answer
27 views

updates page shows an error for a mystery module 'standard 8.6.12'

on the updates page /admin/reports/updates under Modules there is a module called standard 8.6.12 as and it is highlighted with a warning No available releases found (Warning) this module does not ...
0
votes
2answers
68 views

How to successfully follow Drupal.org's instructions for updating via composer [duplicate]

In following the instructions at https://www.drupal.org/docs/8/update/update-core-via-composer, prior to updating core from 8.5.3 to 8.6.12, when I attempt to go through the list of available module ...
1
vote
1answer
24 views

Composer- Is it possible to make a patch that modifies a module's composer.json?

I want to confirm some behavior of Composer to see if this is a limitation of Composer or something I did wrong. This is based on an issue in the Markdown module queue. Basically, here's the issue. ...
0
votes
2answers
37 views

Can not update drupal/core with composer

Can not update drupal/core to 8.6.11 composer prohibits drupal/core:8.6.11 shows webflo/drupal-core-require-dev 8.6.10 requires drupal/core (8.6.10) How can I solve it ??
0
votes
0answers
86 views

Resolve composer update drupal/core 8.6

When i try to run composer update it results to the following problem: Your requirements could not be resolved to an installable set of packages. Problem 1 - don't install drupal/core 8.6.0|...
2
votes
1answer
46 views

Does “composer remove drupal/module” actually uninstall the module first?

Does composer remove drupal/module actually uninstall the module first, especially in multi-site environments? On the other hand, does composer require "enable" the given module for all sites?
6
votes
1answer
273 views

“Declaration of <function> must be compatible with <interface>” in Drupal 8.6.10

Up until Saturday I had a functioning Drupal 8.6.x instance. The I did composer update and Drupal 8.6.10 was installed. Since then I get the following in my error logs: Declaration of Drupal\Core\...
2
votes
3answers
277 views

How to add theme from github with composer

I have a Drupal 8 installation and I like to install a theme from github.com using composer. It is this theme https://github.com/forumone/gesso Can anybody help me what I have to add to the composer....
0
votes
2answers
62 views

What is the correct composer syntax after manually editing composer.json

I want to build a site broadly based on an exiting site and was thinking that the best way to do this would be to copy and paste required modules from the existing site composer.json and paste them ...
0
votes
0answers
26 views

Can't install Drush 8 [duplicate]

I am following the instructions at https://docs.drush.org/en/7.x/install/ My PHP version is PHP 7.0.33-0ubuntu0.16.04.1. When I run this command... composer global require drush/drush:dev-master ....
0
votes
0answers
38 views

How to add module dependencies to composer of custom Installation profile

I am trying to create an Installation profile in D8. I want to add module dependencies to composer file of the profile. (This profile is added to the site through composer) I tried running the ...
1
vote
0answers
34 views

Alter the generated composer.json on packages.drupal.org for third-party modules

This question is similar to Support composer_manager AND drupal-composer/drupal-project with contrib module, but I am asking it with a different angle this time. Imo this justifies a separate question,...
0
votes
1answer
28 views

Support composer_manager AND drupal-composer/drupal-project with contrib module

Motivation / use case I maintain the module package https://drupal.org/project/cfr, which currently requires composer_manager to be installed, and where composer_manager is required in the *.info ...
1
vote
0answers
216 views

Composer update drupal core problem [duplicate]

I've inherited a site that I'm attempting to update - and when I attempt to update to the newest security patch - composer tells me that: composer require drupal/core:8.6.10 ...
0
votes
1answer
63 views

Trouble installing drupal-project with Composer

I have followed the directions to install drupal-project with drupal-composer. I keep getting this error and it doesn't make sense to me. [InvalidArgumentException] Could not find package drupal-...
3
votes
1answer
79 views

Generate installed modules into a composer.json for existing site: I need to manage via Composer, not via UI

I have a Drupal 8 site up and running with modules that were manually installed. I want to generate an appropriate composer.json file to manage these using Composer. The closest I could find to ...
1
vote
1answer
41 views

How do I get the requirements in a module's composer.json merged into the consolidated composer.json?

I am trying to use composer correctly to install a library named nikic/php-parser. Thanks to helpful comments by Clive, I now understand that when a Drupal 7 module comes with a composer.json file, ...
0
votes
0answers
72 views

How to install custom module and its dependencies with composer

Hi I am trying to setup my new Drupal 8 site with composer, but I got few issues. I tried to setup the site site by following the Guide from here and was able to setup the site successfully. After ...
1
vote
0answers
137 views

What is drupal/drupal dev-master?

I have a Drupal 8.6.7 project that I'm trying to manage with Composer. I'm trying to understand why I cannot make it work. To get this project started, I wiped the vendor and composer.lock file and ...
-3
votes
1answer
67 views

Upgrade to Devel 8.x-2.0 without Composer

I have Devel 8.x-1.2 installed and need to upgrade to 8.x-2.0 but I cannot install Composer/Drush on the server as it is not included in the hosted service. Any guidance how can I execute this upgrade?...
0
votes
1answer
44 views

Update webform without composer

I need to update webform from 8.x-5.0-beta18 to 8.x-5.1 but unfortunately, I cannot use Composer because it is not possible to install it on my server due to server restrictions. This also apply to: ...
0
votes
1answer
152 views

Composer won't update Drupal Core, can't determine what is stopping it

I am trying to update Drupal Core 8.6.3 to 8.6.5 (which is the latest Core update at time of writing this). Using this CLI Composer command: composer update drupal/core --with-dependencies ...
3
votes
1answer
80 views

How to do core development with composer-based install?

I'm using drupal-composer/drupal-project. With that, installer-paths in composer.json installs core in web/core, it doesn't clone a full git repository. I'd like a full repository, so I can reroll ...
1
vote
2answers
299 views

Error updating modules with composer

I'm trying to update a module with composer. This is the command (but it the same if I try to update another module): composer update --with-dependencies drupal/geofield_map This is the output of ...
1
vote
1answer
368 views

Composer install dependency error drupal/drupal dev-master

I'm managing my site dependencies via composer, most of the times works really well. Now I installed my site on a new server, using the exact same code-base as before (but with composer 1.8.0 instead ...
5
votes
1answer
299 views

`composer require` fails because “Source directory docroot/core has uncommitted changes”

Symptom: You have a script that fails while executing a composer require command, resulting in output like the following: $ ./example.sh Gathering patches for root package. Removing package drupal/...
0
votes
0answers
34 views

Upgrade modules

I am going from Drupal 7.6 to 8.6 using the migration UI (https://www.drupal.org/docs/8/upgrade/upgrade-using-drush). When I get to /upgrade/review it lists out the modules that need upgrading. The ...
-1
votes
1answer
108 views

Your PHP version does not satisfy that requirement [closed]

We use the following for our local development environment. When we run composer require 'drupal/module_name:^1.1', we get the following error message. We have doubled checked that all settings for ...
0
votes
0answers
52 views

Workflow issue that has been completely baffling

One of my developers, who has been working with Drupal since he started several months ago, recently ran into an issue with the composer install command that failed with the following error: ...
1
vote
1answer
57 views

How to move Composer created folder of drupal-8.x.x up one level to html?

So I created a fresh install of Ubuntu 16.04 and installed the LAMP stack, installed phpmyadmin and composer and then finally drush. Everything worked fine until I downloaded and installed Drupal ...
0
votes
1answer
26 views

Webform CKEditor add color

I would like to add the possibility to change color in CKEditor, mainly for Webforms. The instructions at https://www.drupal.org/project/colorbutton suggest to download manually the CKEditor ...
0
votes
1answer
432 views

Converting a drupal/drupal site to Work With Composer

At our company we have several sites that appear to have been made using the now deprecated method of composer create-project drupal/drupal. We've been fine using previously documented methods to ...
1
vote
0answers
35 views

Can I remove dependencies from dependencies via composer?

If for example I have a distribution like thunder installed but I don’t want to have certain modules required via composer. Is there a way I can overwrite the dependencies of the distribution via my ...
-1
votes
1answer
61 views

Automating creation of a settings.php file in a version-agnostic way

To create a latest Drupal project with a local Drush I might do for example: drt=/var/www/html composer create-project drupal-composer/drupal-project "$drt" To create a Drupal settings.php for such ...
0
votes
0answers
32 views

composer require drupal/admin_toolbar triggers mass library download

I installed Drupal on my local XAMPP using composer thus: composer create-project drupal-composer/drupal-project:8.x-dev \ example --stability dev --no-interaction The site spun up fine. I then ...
1
vote
0answers
27 views

What causes composer.lock to add/remove security coverage and change GPL license string on every commit?

It seems like every time we run composer require drupal/some_contrib on a particular project multiple lines in the lock file change in small ways that have no effect but make it hard to see the real ...
2
votes
1answer
133 views

How do I point to a particular installation of simplesamlphp with the simplesamlphp_auth module?

I am trying to integrate our company's SSO into our Drupal installation. As a POC to see if it even works, I have a copy of the SimpleSAMLPhp Library located at /foo/bar/simplesamlphp. I configured my ...
1
vote
1answer
1k views

“Your requirements could not be resolved to an installable set of packages”

Last time I used composer on my project was to update drupal core from 8.6.2 to 8.6.3 using composer update drupal/core webflo/drupal-core-require-dev --with-dependencies and to update the webform ...
0
votes
1answer
381 views

Running “composer update” leads to errors with coder

... > Drupal\Core\Composer\Composer::vendorTestCodeCleanup - Updating drupal/coder (8.2.12 => 8.3.1) The package has modified files: D coder_sniffer/Drupal/Test/Array/ArrayUnitTest.inc ...
1
vote
0answers
154 views

Composer install is asking me user and password for a contrib module

I'm installing my own clone of a Drupal project and when I'm launching Composer Install, in the drupal/calendar, ask me an git.drupal.org id to download the module...what can I do?
2
votes
1answer
103 views

Local drush stops working after changing files and folder permissions

So I changed the files and folder permissions with the following commands on Drupal 8 and after that, I can't run drush commands unless I change file permissions to 777 find . -type f -print0 | xargs ...