Adding composer to update core [duplicate]
質問
I'm using a site created on Pantheon and now I'm not using pantheon.
So the core is not installed with composer. Now I want to upgrade core with composer but I don't understand how.
I've some modules installed with composer, so I try to add drupal/core :
compose require "drupal/core"
It's ok, but if I try to this, the aren't upgrades:
composer update drupal/core --with-dependencies
I've core 8.6.1 and I wanto to update to 8.6.2.
Thanks
解決
It is probably due to how the drupal/core line in your composer.json file is defined. It probably has the version locked to 8.6.1. So the update is saying: You are already at the version you requested. There are no updates.
I would try doing the following:
composer require drupal/core:8.6.2 --update-with-dependencies
This will tell composer to use that version and ignore the version info in the composer.json file.
所属していません drupal.stackexchange