How to update Drupal core with composer with dependencies?

How to update Drupal core with composer with dependencies?

For both 8.3.x to 8.4.0, and now 8.4.x to 8.5.0, I’ve had the following issue: I have the version constraint for drupal/core set to ~8.0 or ~8.4 in my composer.json. I run composer update drupal/core –with-dependencies (as recommended in Drupal.org’s Composer documentation ). Composer does its thing.

How to update the core code of Drupal?

Update Drupal core code With the metapackage drupal / core – rec With the package drupal / core only (see composer update drupal/core “drupal/core composer update drupal/core –with-depen

When to run Composer install no Dev instead of composer update?

If you have separate dev/staging and production servers, ensure the updated composer.json and composer.lock files are on production and always run composer install — no – dev on production, rather than composer update. The — no – dev switch skips the installation of packages not intended for use on production sites.

What to do when Drupal doesn’t update?

If there is no line starting with drupal / core, Composer isn’t aware of any update. If there is an update, continue with the commands below Note: zsh handles asterisks differently, so asterisk package wildcards need to be quoted. To simulate the update, and show you what would happen, without actually changing anything, add — dry – run.

Why is composer defaulting to doing nothing in PHP?

Composer can’t satisfactorily satisfy the requirements your composer.json is setting, and so is defaulting to doing nothing, rather than knowingly doing an update where the requirements aren’t met.

Can you upgrade Drupal core to 8.4.0?

For the past two minor release Drupal core upgrades, I’ve had major problems trying to get some of my Composer-based Drupal codebases upgraded. For both 8.3.x to 8.4.0, and now 8.4.x to 8.5.0, I’ve had the following issue: I have the version constraint for drupal/core set to ~8.0 or ~8.4 in my composer.json.