New answers tagged

5

The latest releases of Drupal 8 are "supported but not recommended" on Drush 8. Drush 8 is still necessary if you are not using Composer to build your site. Composer is recommended for all Drupal 8 sites because sooner or later you are likely to need a module that requires Composer. If your site does not yet need such a module, though, then it is possible to ...


0

Unfortunately, composer is always going to apply any patches you have defined that are not already applied whenever it runs. You can comment out the patches, run your composer command, and then uncomment them.


1

I wrote a blog that gives some case studies about when and why you would include a composer.json with your module: https://www.morpht.com/blog/drupal-and-composer-part-4-composer-drupal-developers Basically it comes down to four things: It allows your module to be managed with composer. It allows your module to have it's Drupal module dependencies managed ...


0

After installing just run composer drupal:scaffold after running composer install would fix it temporarily.


4

You can write the names of multiple packages separated by spaces. For example: composer require drupal/adminimal_theme:^1.5 drupal/adminimal_admin_toolbar:^1.9


1

The problem is probably caused because one of the core patches that you are trying to apply doesn't exist or couldn't be downloaded. I have tested with your composer.json on a clean Drupal 8 install. When running composer update I get the following error: Could not apply patch! Skipping. The error was: The "patches/295028764_media-bundle-shim.patch" file ...


1

You are using drupal/drupal that is deprecated (because upgrading is very hard / impossible). After you have fixed the drupal/drupal problem, follow the normal update instructions.


0

You are using the tilde here: "drupal/core": "~8.6", From experience I know it is better to pinpoint drupal/core to a certain version. FE "drupal/core": "8.6.17", This leaves composer with no other choice than going for that version of core. In case you are using the webflo template you have to run another command: composer update drupal/core ...


1

A Drupal project is often/usually more than just the webroot, there are other files/folders that can be part of a project. Two specific examples are the private files folder, and the configuration folder. Storing these out of the webroot acts as a layer of security, as they are not web accessible. The configuration folder is one that is managed with Git, ...


0

You do this with requiring the Composer Merge Plugin in your Drupal project's composer.json and then define in which additional locations it should look for composer.json files to be merged. Composer Merge Plugin is intended to allow easier dependency management for applications which ship a composer.json file and expect some deployments to install ...


1

The h5p module has 2 dependencies and must therefore be updated like this: composer update drupal/h5p --with-dependencies


0

Im the maintainer of packages.drupal.org - I went ahead and deleted the invalid data out of the database, and this will install now. I've also opened and issue on drupal.org to put more defensive measures in place. https://www.drupal.org/project/project_composer/issues/3076342 I think something must have changed in how permissive composer is with certain ...


Top 50 recent answers are included