Questions tagged [composer]

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

Filter by
Sorted by
Tagged with
-1
votes
0answers
26 views

Composer require drupal/social_auth_google - Your requirements could not be resolved to an installable set of packages

Previously I got an error with the command composer require "drupal/social_auth_google:^2.0" So I tried; composer require "drupal/social_api:2.x-dev" "drupal/social_auth:2.x-...
0
votes
1answer
18 views

How to override version of drupal-library (JavaScript library) included with composer merge-plugin?

I'm using Webform with the composer-merge plugin to bring in its libraries: Relevant parts of my composer.json file: "extra": { "installer-paths": { "...
-4
votes
0answers
33 views

unable to install with composer

I have a problem with composer. I try to install module with composer, but all the time i see file_put_contents(//.csslintrc): failed to open stream: Permission denied I tried with permissions: $...
0
votes
0answers
19 views

Swiftmailer prevent composer updates

I have an issue with composer and Drupal 8.9.13. When I try to update Drupal, I always get the next error and I don't find a way to solve it: #$> php -d memory_limit=-1 composer.phar update drupal/...
0
votes
1answer
58 views

Installing a v8 module [duplicate]

If a contrib module's info.yml contains core: 8.x and not core_version_requirement: ^8.8 || ^9, how can a site be upgraded to Drupal 9 using composer? composer update downloads modules in "...
0
votes
1answer
64 views

Composer won't upgrade drupal/core-recommended

My composer.json is below { "name": "drupal/recommended-project&...
1
vote
2answers
59 views

Installing Acquia BLT on an existing site

We have a working Drupal 9 installation (running within Docksal), which has pretty much the whole install living in docroot/ except for the config/ directory, which is a sibling of docroot/. This ...
0
votes
1answer
135 views

Stuck in my config import because of guzzlehttp/guzzle error

I am trying to import the config from another of my Drupal 9.1.4 projects with Composer / Drush (drush config-import from a folder source, all two websites on my local repository on Xampp), but a ...
0
votes
0answers
25 views

Upgrade with patched module [duplicate]

I am trying to upgrade to Drupal 9, but I have two modules that aren't compatible. I patched both the modules to make them compatible. However, I can't upgrade to Drupal 9. When I do, it tells me ...
-2
votes
1answer
83 views

Issue installing module via composer. - “package is fixed”

I've installed Drupal via Composer as well as 2 other modules and everything seemed ok. But now I tried installing Nodeaccess and get the following error message in console: Your requirements could ...
0
votes
0answers
49 views

I cannot upgrade

I'm currently with Drupal 8.9.13 and trying to update to Drupal 9. When I try the below command it says Nothing to install or update. composer update drupal/core-recommended --with-dependencies When I ...
0
votes
1answer
49 views

Is it possible to install Drush 9 without using Composer?

Is it somehow possible to install Drush 9 without using Composer?
0
votes
0answers
72 views

Why do I get an error about the constant SODIUM_LIBRARY_VERSION not being found?

I'm on shared hosting, and I'm trying to install drupal 8 using composer. When I run composer create-project drupal/recommended-project:8.x-dev my_site_name_dir, I get this error. constant(): Couldn'...
0
votes
0answers
15 views

Is it possible to update individual package of drupal core [duplicate]

Team, Is it possible to update individual package of drupal core? I am new to drupal and using drupal 8.9.3. For example: Drupal core 8.9.3 has twig 1.38.2. I want to update twig to 1.44.2. I tried to ...
0
votes
0answers
24 views

Demo Framework versioning issue

Is the Demo Framework project not compatible with Composer 2.0? Are there any workarounds? The output of composer create-project acquia/df-project DemoFramework -s dev is the following one. Creating ...
3
votes
2answers
130 views

Composer installing dev modules getting Authentication required (git.drupalcode.org) [closed]

When trying to composer install, and it reaches one of the modules using a Dev version, I get: - Installing drupal/paragraphs (dev-1.x 42842d5): Authentication required (git.drupalcode.org): Username: ...
1
vote
1answer
59 views

How can I switch back and forth between globally installed Drush versions?

I installed Drush 8 using cgr (which is a safer replacement for composer global require): cgr drush/drush:8.x-dev --prefer-source But now I also want to install Drush 9 for certain sites. Is there a ...
1
vote
0answers
35 views

PDOException: SQLSTATE[HY000] [2000] on local Docker Drupal Composer site

I've read all the other similar questions and none of the answers have solved the issue. I'm on a Drupal 8 site. 'host' => 'localhost', 'port' => '3306', 'namespace' => 'Drupal\\Core\\...
0
votes
0answers
41 views

upgrade from 8.9.2 to 9.1.0

I have a drupal 8.9.2 installation with many modules. I ran upgrade_status and applied patches or upgraded modules to dev version like suggested. fhebert@fhebert-communication:/var/www/domain.com$ ...
0
votes
0answers
43 views

PHP Error occuring when updating, clearing cache or install/uninstall modules?

I am getting this below error when doing the actions of clearing cache, or install/uninstall module, running update.php. InvalidArgumentException: Routing requirement for "_user_is_logged_in"...
0
votes
0answers
206 views

Issues updating core to 9.1.2 with Composer

On my local site, I had updates for 2 modules and Drupal core. To update, I typed in composer update, which had worked for me previously just fine. Composer indicated everything updated, although on ...
0
votes
0answers
81 views

“composer update” gives UnexpectedValueException

Locally, I first tried to update core individually using composer update drupal/core drupal/core-recommended --with-all-dependencies. This gave an error, so I just used composer update, which usually ...
-2
votes
1answer
49 views

Composer keeps reinstalling the same core version

I manually updated a Drupal 9 installation to 9.1.2. I need to install the Real AES module, which depends on the Defuse PHP-Encryption library. I attempted to install it using Composer, but it tries ...
1
vote
0answers
38 views

How can I update core without upgrading third-party modules?

This is generally how I update Drupal core: composer update drupal/core --with-dependencies However, today when I do this, it is also upgrading the contrib modules. I want to upgrade the core only. ...
0
votes
1answer
45 views

How can I get hold of the Composer object?

I'm trying to get the file location of something in an installed package. https://stackoverflow.com/questions/15714809/get-filesystem-path-of-installed-composer-package says I can get that from the ...
-2
votes
1answer
343 views

How do I update from 9.0.10 to 9.1.0?

I have tried to update drupal 9.0.10 to 9.1 with composer but I cannot: composer outdated 'drupal/*' drupal/core 9.0.10 **9.1.0** Drupal is an open source content manage... drupal/core-...
0
votes
0answers
94 views

How can I downgrade core? [duplicate]

I have Drupal version 9.1 but the Get JWT on Login module is not available for Drupal 9.x, so I need to downgrade to the latest version of Drupal 8.x. Is it possible to do that through Composer?
0
votes
1answer
51 views

Drupal module upgrade via Composer not being recognized

A Drupal 8 site started pestering me to upgrade Twig Tweak from 8.x-2.8 to 8.x-2.9. I went to the directory and ran composer require 'drupal/twig_tweak:^2.9' which seemed to work. I also did drush cr. ...
3
votes
2answers
90 views

How can I use Composer with no Internet access?

I need to build and deploy a Drupal 8 site within an on-premise server with no internet access (developer machines have internet access, and access to a private repo). I would like to avoid committing ...
0
votes
1answer
33 views

Custom Theme Repository update

I have a custom theme that I use in several websites. My theme is on gitlab. I can download my theme by composer in different websites. My problem is when I update repository theme with a fix or new ...
5
votes
1answer
124 views

How do I include composer.libraries.json in root composer.json without using the wikimedia/composer-merge-plugin plugin?

In the recent update to Composer 2.0 the advice is to get rid of the wikimedia/composer-merge-plugin, which was even removed from the dependencies of Drupal core. There is documentation on how to ...
-5
votes
1answer
53 views

Removing a patch from Drupal core

I'm using cweagans/composer-patches to apply a patch to drupal/core. When a second developer has pulled down the codebase and run composer install, the installation of drupal/core is failing. Firstly, ...
6
votes
1answer
121 views

Patch drupal.org project (core/module/theme) with issue fork

The new fork based merge request (MR) approach is pretty neat to get the patches created/reviewed/merged. However, if you are using the patch via cweagans/composer-patches, we have a few options. ...
0
votes
0answers
21 views

How to apply patch and require a module both at the same time through composer? [duplicate]

I am trying to install a module CookiePro on Drupal 9 site. CookiePro has no Drupal 9 release. But this patch can make it work on D9. Now confusion is that how do i install this module and patch both ...
3
votes
1answer
194 views

How can I update core to 8.9.10?

I'm trying to apply the security update for core by updating it to 8.9.10 with the following command: composer update drupal/core But this only brings back the following notice: Nothing to install ...
0
votes
0answers
48 views

Acquia Dev Desktop create-project Fails With 404 Error at Repository

I am using a brand new installation of Acquia Dev Desktop on Windows 10. When I try to use composer to create a new project I get the following output using the -vvv option: composer create-project ...
0
votes
1answer
95 views

Composer downgrading module version

I wish to move the bootstrap theme from the repository located in the folder theme/custom to be a dependency in composer.json I've checked that the current version drupal/bootstrap is 3.16 I perform ...
0
votes
1answer
51 views

How to uninstall pdf_reader module without error? “The 'core' or the 'core_version_requirement' key must be present”

In summary: I cannot uninstall pdf_reader sucessfully without bringing down my site with this error: Drupal\Core\Extension\InfoParserException: The 'core' or the 'core_version_requirement' key must be ...
3
votes
2answers
1k views

How can I downgrade a module with Composer?

I updated the following module to its stable version : https://www.drupal.org/project/commerce_pricelist/releases/8.x-2.0-rc2 This module completely broke my site. There has been no database update. ...
1
vote
3answers
3k views

Trouble after updating to 2.0

I got a notice to update composer to 2.0 today and gave it a try, using "composer self-update --2". Now when I run composer update, I'm seeing this message. The "grasmash/composerize-...
0
votes
1answer
423 views

Problem upgrading via Composer

I am currently trying to upgrade my site from drupal 8.9 to drupal 9. I ran these commands to give permissions: $ chmod 777 web/sites/default $ find web/sites/default -name "*settings.php" -...
2
votes
1answer
56 views

How to exclude contributed modules from being upgraded when we run composer install or composer update?

I want to exclude contributed module Ubercart from being upgraded when we run composer install or composer update ? What change should I add in the composer.json so that it ignores ubercart ...
0
votes
1answer
42 views

Patching docroot htaccess: file not found

I tried to create my first patch file in order to reverse the overwriting of the scaffold file .htaccess after executing composer install. I get the following errors: can't find file to patch at input ...
0
votes
1answer
269 views

Authentication required (git.drupalcode.org)

On Drupal 9, I want to install the Taxonomy menu module using Composer, but I get the following error. Using version ^3.4 for drupal/taxonomy_menu ./composer.json has been updated Loading composer ...
0
votes
0answers
75 views

Fatal error memory limit (always) while installing a module

I am asking for help in solving an extremely annoying problem. I have a simple website based on Drupal 9. Due to its simplicity, the installation of all modules was based on the Drupal UI. I also have ...
0
votes
1answer
63 views

Why does composer remove a folder it doesn't manage

I have the gesso theme installed in themes/contrib, and since I have not subthemed, all my components and templates live in within its folders. For that reason, I do not manage it with composer. I ...
1
vote
1answer
44 views

Deprecated Dependency Warning not removing

In my Drupal 8.9.6 (Installed with Lightning distribution) Status Admin Page, there are three warnings showing after updating several modules and core to the latest versions: DEPRECATED DEPENDENCY: ...
10
votes
3answers
539 views

Require v8 only contrib module with v9 patch

Given I have Drupal 9 composer installation with composer-patches plugin and given a contrib module with a stable v8 release, but no v9 release (not even dev branch) and given that contrib module has ...
0
votes
1answer
246 views

Updating core to 8.9.6 fails

I'v installed Drupal 8 by composer. Everything worked fine, but when I tried to update core from 8.9.1 to 8.9.5 in ended up in 8.9.4. Today I tried to update from 8.9.4. to 8.9.6 by changing composer....
2
votes
0answers
56 views

Updating core with Composer, differences, and why --with-dependencies fails

I'm a Drupal novice and have been playing around with it for the last few months. It seems like every 'how-to' article tells you a different way and a reason not to do it the other way. I am a ...

1
2 3 4 5
11