I'm trying to update Drupal core to lasted version with composer update drupal/core --with-dependencies. I followed the instructions given on Update core via Composer, but Composer claims there is nothing to install or update. It also prints the following message.

Package "drupal/core" listed for update is not installed. Ignoring.

  • 1
    Is drupal/core listed in the require section your composer.json file?
    – CG Monroe
    Commented Aug 13, 2018 at 15:45
  • Can you include the contents of your composer.json file in your question?
    – Amy
    Commented Aug 13, 2018 at 20:50
  • Also, make sure you're within the correct directory. Running the above command within the Drupal root is of no good as it's part of the drupal/core package itself. The mentioned instructions refer to a composer scaffold around the Drupal root (usually one folder above) that have drupal/core as dependency. Commented Aug 14, 2018 at 0:24
  • You may find my answer to this similar question helpful drupal.stackexchange.com/questions/259592/…
    – 100pic
    Commented Aug 14, 2018 at 3:53

1 Answer 1


1, in file composer.json add

"require": {
"drupal/core": "~8.5"

Remove line

"replace": {
    "drupal/core": "^8.5"

remote folder vendor remove file composer.log

alter run

composer update --with-dependencies
  • On its own, wouldn't this install Drupal core into the vendor/drupal/core folder? I'd expect you need at the very least to add "extra": { "installer-paths": { "./core": ["type:drupal-core"] }} to make it end up in the right place... Commented Aug 19, 2018 at 14:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.