Why doesn't core get updated to 8.5? I am trying to update via Composer following what reported in Update core via Composer, but when I do composer update drupal/core --with-dependencies, I get the following output. 


  Loading composer repositories with package information
  Updating dependencies (including require-dev)
  Nothing to install or update
  Generating autoload files  


I checked /admin/report/updates, and I can see that Drupal 8.5 is available. The content of composer.json is the following.

    "repositories": [
    {
        "type": "composer",
        "url": "https://packages.drupal.org/8"
    }
]


Why isn't Composer updating core?
A few things to try if composer update drupal/core --with-dependencies doesn't work

If you're composer.json contains these lines, remove them (where XX equals anything)

"replace": {
    "drupal/core": "~8.XX"
},


Then run composer require drupal/core:~8.5.1 (even if your composer.json did not contain the above lines)

If that fails, try my last ditch method:

Remove the core &amp; vendor folder (we will then re-add)

sudo rm -rf core vendor


Clear Composer cache

composer clearcache


Then again

composer require drupal/core:~8.5.1


Don't forget to make a backup first if you haven't already!