Questions tagged [composer]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
22 views

Composer using old JSON for contrib module?

I maintain skilling, a contrib module. This... composer require drupal/skilling ... reports... [RuntimeException] Could not load package drupal/skilling in https://packages.drupal.org/8: [...
-1
votes
1answer
26 views

Patch Status for 'cweagans/composer-patches'?

It seems that 'Drush Patch File' (https://bitbucket.org/davereid/drush-patchfile/src/master/) isn't compatible with Drush 9. It, however, has one important function - Patch Status - which enables ...
0
votes
1answer
16 views

How to include a patch to a JS library?

I'm using the Superfish library in my Drupal 8.7.x project. I included it in composer.json like this: "repositories": [ { "type": "composer", "url": "https://packages....
0
votes
2answers
53 views

How to install a specific version of Drupal using Composer

Composer always installs the latest version of Drupal core, I want 8.6 not 8.7. How can I achieve this?
-2
votes
1answer
34 views

Git merge issues with Composer.lock [closed]

We have a simple setup. We update our drupal 8 sites on a local machine using composer update we commit the lock file and json file and push to a gitlab git repo We then pull to a staging server ...
0
votes
1answer
71 views

Recommended Drush version to use and install for Ubuntu 19 with PHP 7.2 and running Drupal 7

It's been awhile since I've upgraded my server and I'm setting it up from scratch. I'm using Ubuntu 19, apache 2 and PHP 7.2. My site is Drupal 7 which is still running php 5.6 in my old server. I'm ...
1
vote
0answers
24 views

Don't re-apply patches when requiring new module?

I keep running into the issue that, when requiring a new module with composer, existing packages are removed and reinstalled if they have patches defined in composer.json. For instance, λ lando ...
0
votes
0answers
30 views

Skip updating certain themes/modules on composer update

My setup is composer driven. I have overridden some module with patches and customised a contributed theme (boostrap_sass). Now I want to avoid overbidding these modules and theme when I perform ...
0
votes
0answers
47 views

How to distribute/share a drupal 8 project/product?

I have a site that I've built with Drupal 8, using composer and git to manage the codebase. It's a fairly simple site that includes a handful of contrib modules, a few custom views, and a custom theme....
1
vote
0answers
62 views

Managing custom themes and modules using composer or git

If I am managing my drupal 8 site using the Composer workflow, how should I go about incorporating/managing custom themes and modules? Let's say I have a custom theme that I manage using gitlab. Do ...
0
votes
1answer
151 views

The following SSH command responded with a non-zero exit status (drupal-vm)

My environment: Vagrant 2.2.4 VirtualBox 6.0.6r130049 ansible 2.7.10 config file = None Mac OS Mojave (10.14.4) I use drupal-vm to build my local development environment. I cloned this repo and ...
0
votes
2answers
335 views

Composer update failure

I am trying to update a site to Drupal 8.7 and getting a weird set of errors. Can someone point me to how to best diagnose and fix the problem? Here are the steps that I am taking: When I try to ...
0
votes
0answers
36 views

Using Composer in a multisite installation

How do I manage modules via composer in a multisite architecture? For example, if I want one site to have version 2.3 of a module, and another to have version 2.4, how do I do this? Do I have a ...
1
vote
0answers
37 views

Change module from manual to composer installed

Note: This is not a duplicate of The site has a mix of modules installed manually and via Composer: Can I move all to Composer? As this question below involves different folder locations. I currently ...
0
votes
1answer
40 views

Composer.json deletes dir even with preserve path

I am running composer on Drupal 7 and I am just trying to update my site; however when I run composer update, the composer deletes all the preserve paths I had specified. My structure is as follows: ...
0
votes
2answers
27 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
89 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
61 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
100 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
56 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
290 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
69 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
607 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
41 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
95 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
46 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
71 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
224 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|...
3
votes
1answer
188 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
340 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
4answers
439 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
99 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
28 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
58 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
37 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
35 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
491 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
150 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
315 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
55 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
394 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
172 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
80 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
62 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
309 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
87 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
522 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 ...
2
votes
2answers
526 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
498 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
40 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 ...