By usernameabc


2018-07-18 23:41:50 8 Comments

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 8.5.3 to 8.5.4 and then eventually from 8.5.4 to 8.5.5.

We tried the following but it didn't get updated.

composer update drupal/core:8.5.4 --with-dependencies

Message after running composer command

Nothing to install or update

I ran this command in the directory outside of docroot in C:\users\name\Sites\mysite\ which has the following folders

  1. .git
  2. config
  3. docroot
  4. drush
  5. hooks
  6. vendor

I also ran composer why-not drupal/core:8.5.4 and had the following message returned.

There is no installed package depending on "drupal/core" in versions not matching 8.5.4

2 comments

@usernameabc 2018-07-19 17:34:03

After running composer why-not drupal/core:8.5.4 and doing some more research on the error message, I came across Upgrading from 8.5.0 to 8.5.1 using composer

This command did the trick for me.

composer require drupal/core:8.5.4  webflo/drupal-core-require-dev --update-with-dependencies

@bleen 2018-07-19 13:24:13

Look at your composer.json... do you see drupal/core listed under "require" or "replace"? Make sure you move it under "require"

@Alfred Armstrong 2018-07-19 16:21:35

Yes, I saw this exact same thing the other day on a project so can confirm.

@usernameabc 2018-07-19 17:18:06

@bleen "drupal/core": "^8.4" is under require, but still having the issue.

Related Questions

Sponsored Content

1 Answered Questions

Updating core to a specific version with Composer

  • 2018-10-22 12:12:20
  • Rusletov
  • 380 View
  • 2 Score
  • 1 Answer
  • Tags:   8 updating composer

2 Answered Questions

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

  • 2018-10-20 11:02:46
  • Rusletov
  • 138 View
  • 0 Score
  • 2 Answer
  • Tags:   8 drush composer

1 Answered Questions

[SOLVED] Updating core from 8.5.4 to 8.5.6

  • 2018-08-13 15:38:28
  • Foo Barazz
  • 179 View
  • 0 Score
  • 1 Answer
  • Tags:   composer

1 Answered Questions

[SOLVED] Composer package is updated, but core still asks to update

  • 2018-07-26 17:39:13
  • ARMANDO SILVA
  • 125 View
  • 3 Score
  • 1 Answer
  • Tags:   updating composer

2 Answered Questions

[SOLVED] Why does RELAXed Web Services Not appear in the module list?

  • 2018-05-03 14:54:12
  • James R
  • 105 View
  • 0 Score
  • 2 Answer
  • Tags:   8 composer

1 Answered Questions

[SOLVED] Composer update Drupal core, 8.5.1 to 8.5.2 Nothing to Install

  • 2018-04-21 06:59:37
  • winteck
  • 614 View
  • 3 Score
  • 1 Answer
  • Tags:   composer

1 Answered Questions

[SOLVED] Drush 9.2 - not working well / not installing with Composer

  • 2018-04-16 15:46:47
  • DonRichmond
  • 451 View
  • 3 Score
  • 1 Answer
  • Tags:   drush composer

1 Answered Questions

Ovh and composer

  • 2017-12-07 09:23:40
  • Selinav
  • 139 View
  • 0 Score
  • 1 Answer
  • Tags:   composer

2 Answered Questions

[SOLVED] Updating core with Composer doesn't work

  • 2017-04-19 09:06:25
  • Peter Janes
  • 1260 View
  • 5 Score
  • 2 Answer
  • Tags:   8 drush updating

1 Answered Questions

[SOLVED] Error during "composer drupal-update" for Drupal 8.0.5

  • 2016-03-06 14:39:15
  • James Shields
  • 512 View
  • 0 Score
  • 1 Answer
  • Tags:   8 composer

Sponsored Content