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).

1
vote
1answer
28 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 ...
-3
votes
0answers
18 views

Your requirements could not be resolved to an installable set of packages [on hold]

Could anyone with a lot of composer experience please add a debug workflow for the opaque composer error messages. Like, My website is running smoothly, i can install a lot of things, and then ...
5
votes
1answer
113 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/...
-1
votes
0answers
45 views

Install Drush 9 with Composer [closed]

Ran this command (got no errors): composer global require drush/drush:9.* Then cd to /var/www/site.com/htdocs/ and run drush status, it gives: -bash: /usr/local/bin/drush: No such file or directory....
0
votes
0answers
26 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 ...
-2
votes
0answers
50 views

How do I install Composer?

I manage my Drupal 8 site in Acquia Dev Desktop 2. I need to download the Swiftmailer module which can only be installed with Composer. Unfortunately I don't know how to set up Composer with my Acquia ...
-1
votes
1answer
42 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
46 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
33 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
19 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
96 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
24 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 ...
0
votes
1answer
44 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
24 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
21 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 ...
0
votes
0answers
21 views

Is there any way to work around 'killed' error when trying to update core via Composer on a shared host?

I have some Drupal 8 sites on a shared host that is limited to 1GB of memory. Running composer update for modules works okay but when I try to update drupal/core I get the 'killed' message which is ...
2
votes
0answers
35 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
187 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
54 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
44 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
27 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 ...
1
vote
0answers
43 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
66 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
54 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
129 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
30 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
56 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
193 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
185 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
138 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
304 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: ...
0
votes
1answer
51 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
61 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 ...
0
votes
2answers
158 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
135 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
25 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
92 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
101 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
152 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
37 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
86 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
103 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
2answers
196 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 ...
0
votes
1answer
59 views

composer install error

I can't install anything because of this error: [RuntimeException] Could not scan for classes inside "/app/vendor/symfony/serializer/src/" which does not appear to be a file nor a folder and ...
0
votes
1answer
41 views

Update manually installed modules

I have installed Drupal Commerce 2 through composer as mentioned in https://docs.drupalcommerce.org/commerce2/developer-guide/install-update/installation after that, I have installed a few modules ...
0
votes
2answers
270 views

Why is Drupal Core not updating via composer?

We realized that our Drupal core version is outdated by two versions. We are currently running 8.5.3, but 8.5.5 has been released. Rather than updating directly two versions, we wanted to upgrade from ...
1
vote
1answer
41 views

Composer require drupal/ packages doesn't work

If I run... composer require drupal/token ...I get... Could not find a version of package drupal/token matching your minimum-stab ility (dev). Require it with an explicit version constraint ...
1
vote
1answer
184 views

Composer doesn't see that updates are needed

My Drupal version is 8.5.1, and yet when I run... composer outdated drupal/* It says "nothing to install or update". What to do? This is the relevant part of my composer.json... "require": { ...
0
votes
1answer
373 views

How to update from Drupal core 8.5.0 to 8.5.5?

In the past (Drupal 7), security-only update via drush was simple as: drush up --security-only now, Drush 9.3 returns: Command "up" is ambiguous. Did you mean one of these? ... composer does ...
0
votes
1answer
106 views

Using Drush on a Drupal 8 site installed via Composer

I had a Drupal 8 project installed from Drupal 8 sources what had been downloaded from Drupal 8 site. Recently I heard a good thought that it would be more comfortable to have the project originally ...