Stack Exchange Network

Stack Exchange network consists of 174 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

Questions tagged [composer]

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

0
votes
0answers
28 views

Composer update command behaves in a strange results

The idea is to apply patches to "Drupal core" and "Drupal modules" using "composer.json" file. Following this guide at: https://groups.drupal.org/node/518975, I did the below: 1) Run the composer ...
1
vote
1answer
37 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
35 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 ...
0
votes
0answers
66 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
48 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
38 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: ...
-2
votes
0answers
52 views

Going live via Git and Composer

Can someone explain the roles that Git and Composer have in the process of pushing a localhost build (Drupal 8 in MAMP on Mac) to a live cPanel shared hosting server? I have SSH / shell access by the ...
0
votes
1answer
54 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 ...
2
votes
1answer
61 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 ...
0
votes
2answers
132 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
142 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
186 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
30 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
68 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
48 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
42 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
23 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
232 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
32 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
48 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
29 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
24 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
75 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
523 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
186 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
58 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
50 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 ...
2
votes
1answer
225 views

Updating core to a specific version with Composer

My site hasn't been updated for two months, a few new updates has been released. My site's core version is 8.5.6. Before running composer update -with-dependencies I read the release notes to the ...
0
votes
2answers
101 views

The missing modules don't get installed after updating with Composer

To update a site locally, I cloned the code base with git to my local computer and imported the database, then ran "composer update --with-dependencies", there were no errors, then I went to /web ...
0
votes
0answers
94 views

Do I have to update symfony?

I've upgrade my core from 8.6.1 to 8.6.2 with composer (the installation have not been done with composer, so I add drupal/core in composer with this command: composer require drupal/core:8.6.2 --...
4
votes
2answers
207 views

Disabling module with config sync and removing with composer

I have an issue disabling modules, I've searched but cannot find something useful: - Developer A disable module and via composer remove it - I pull his changes so i run composer install that remove ...
0
votes
1answer
33 views

Composer update

I had an existing Drupal 7 website already running. I downloaded a template composer.json file https://github.com/drupal-composer/drupal-project/blob/7.x/composer.json , to be able to run composer ...
-1
votes
1answer
119 views

Adding composer to update core [duplicate]

I'm using a site created on Pantheon and now I'm not using pantheon. So the core is not installed with composer. Now I want to upgrade core with composer but I don't understand how. I've some ...
4
votes
1answer
253 views

How to patch your htaccess file correctly in composer.json

After running composer update my Drupal installation gets updated, but it also changes the content of the .htaccess file each time. How can I correctly patch it?
-4
votes
3answers
190 views

Did the Drush developers went “back and forth” when combining it with Composer?

If I'm not wrong about 4 or 3 years ago Drush was combined with composer, then it was "decombined" with it, till Drush 9 when they were recombined. If I'm accurate, why did this combine-decombine-...
1
vote
2answers
421 views

How to use Composer to install third party libraries [duplicate]

All I thought Composer takes care of any external library a contrib module requires automatically. I tried installing one, Composer took care of all its dependency modules, but not so much with the ...
0
votes
1answer
457 views

Updating core from 8.4.4 to 8.6.1

I want to update Drupal from 8.4.4 to 8.6.1. I've tried to follow the steps from this page, but without success. When I run this command: composer update drupal/core --with-dependencies I get: ...
-1
votes
1answer
54 views

Composer's drupal/drupal package versus Composer's drupal/core package - deciding which to choose

I never used Composer before the year 2018 in any significant way but as Drupal 8 was developed with a Composer-centralized philosophy, I'm out to start basing all my Drupal projects (which I usually ...
0
votes
1answer
75 views

Upgrading from 8.3.7 to 8.4 conflicts with acquia/blt-project

In the composer.json file I added "drupal/core": "~8.4" to the required section. When I run composer update drupal/core --with-all-dependencies, I get the following output. Loading composer ...
-1
votes
2answers
447 views

How to update core and all modules and themes from CLI?

On a LAMP environment I have a Drupal 8.5.6 website which is nearly all-core with the Bartik theme and a few stable contrib modules. Nothing is customized and I have daily backups so I don't "fear" of ...
-2
votes
1answer
67 views

TinyButStrong (and OpenTbs) library not working [closed]

Download the lib from the web, script outside of Drupal with two include_once() and it works perfectly well. But reading questions and answers here show me this is no longer an option in a Drupal 8 ...
3
votes
1answer
251 views

Include third party library in custom module without composer

I have zero command line access to a remotely hosted drupal site so I'm unable to run composer. My custom module requires the ryanwinchester/hubspot-php package. Is there any way I can manually add ...
0
votes
1answer
26 views

How to install required packages for feeds spreadsheet module as shown required by Composer Manager?

Modules being used Composer Manager Feeds Spreadsheet Requirement I need to install the package as mentioned in the configuration page of module composer manager. The error shown is as given below. ...
0
votes
0answers
146 views

How come Drupal Console is not downloading all commands?

When adding Drupal Console using Composer, we are finding that the list of commands is not complete. How can I resolve the issue? Installation steps: change to root directory (/local/path/drupal-...
1
vote
2answers
145 views

8.5.6 Update not being recognized

I converted a Drupal 7.xx site to Drupal 8.x manually. Updated it to 8.4.5 and tried to use composer to update it to 8.5.6 (Latest stable release). I have the original site as the public_html/drupal ...
0
votes
1answer
168 views

Updating core from 8.5.4 to 8.5.6

I'm trying to update Drupal core to lasted version with composer update drupal/core --with-dependencies. I followed the instructions given on Update core via Composer, but Composer claims there is ...
0
votes
1answer
38 views

Where are backups stored?

I have used https://github.com/drupal-composer/drupal-project to install a new website. I have now updated the core with the same information on the above link. I was wondering where the backups are ...
3
votes
1answer
110 views

Composer package is updated, but core still asks to update

I am using Drupal 8.5.5. On admin/modules/update I red the following message. Bootstrap (Theme) Bootstrap (Theme) 8.x-3.11 update to 8.x-3.12 (Release notes) The composer.json contains the following ...
3
votes
2answers
125 views

Can no longer run “composer require drupal/swiftmailer”

I have a module that relies on swiftmailer, and needs the libraries installed. Whenever I've needed to install swiftmailer libraries to a Drupal environment, I've always run this command: composer ...
-1
votes
1answer
244 views

Missing commands in drush 9.3 [closed]

I have installed drush 9 as dependency of my drupal 8 project as explained in: http://docs.drush.org/en/master/install/ cd ${D8_PROJECT} composer require drush/drush Then, I have installed drush ...