Drupal 8.3 to 8.4 update error

by Kellen   Last Updated November 01, 2017 20:07 PM

I'm trying to run a composer update from my webroot directory. When I use composer update drupal/core --with-dependencies, it returns:

Package "drupal/core" listed for update is not installed. Ignoring.
Loading composer repositories with package information
Updating dependencies (including require-dev)

I wasn't sure if I needed to require the drupal/core package with composer? I tried that, but it had not effect. Following the advice of online forums, I adjusted the following settings in the composer.json file:

"require": {
    "composer/installers": "^1.0.24",
    "wikimedia/composer-merge-plugin": "~1.4",
    "drupal/drush": "^6.0@RC",
    "drush/drush": "~9.0"
"replace": {
    "drupal/core": "~8.4"
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
    "preferred-install": "dist",
    "autoloader-suffix": "Drupal8"

I changed the drush version to ~9.0 and the core version to ~8.4. I then deleted the /vendor directory and the composer.lock file. After running the update again, it updated a few other packages, but ignored core. I feel like I'm missing something simple. Any help is appreciated!

Answers 1

If you downloaded Drupal from drupal.org (e.g. via the tarball download link, or with drush dl), then you cannot use Composer to update Drupal core. The steps you are attempting above only work for sites based on the template project https://github.com/drupal-composer/drupal-project. This is the recommended method to use when managing Drupal 8 sites with Composer.

November 01, 2017 20:29 PM

Related Questions

How to update from Drupal core 8.5.0 to 8.5.5?

Updated July 05, 2018 10:07 AM

Update drush version in docker4drupal

Updated February 26, 2018 07:07 AM