How does one fix the following problem when trying to update Drupal 8 core?
----
php -c ~/php.ini composer.phar update drupal/core
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package symfony/psr-http-message-bridge (locked at v0.2, required as ~1.0) is satisfiable by symfony/psr-http-message-bridge[v0.2] but these conflict with your requirements or minimum-stability.
Problem 2
- The requested package symfony/psr-http-message-bridge v0.2 is satisfiable by symfony/psr-http-message-bridge[v0.2] but these conflict with your requirements or minimum-stability.----
Comments
Comment #2
sprite commentedNow getting the following composer output:
----
----
the composer.json looks like the following:
Given the directives above, what is causing composer to still think that "v0.2" of the symfony/psr-http-message-bridge package is still be requested?
What sequence of composer commands are needed to tell composer to "unlock" the old versions and update them?
Comment #3
cilefen commentedComment #4
cilefen commentedhttps://drupal.stackexchange.com/questions/234321/updating-core-from-8-2...
Comment #5
sprite commentedI fixed the vexing problem described above with the following methodology:
1. made a backup of the site.
2. deleted the core and vendor directory trees.
3. deleted the composer.lock file
4. in the composer.json file removed all but the needed - require drupal/core entries from its require section.
5. ran composer install (general not other parameters)
6. ran composer update (general not other parameters)
- the above seems to have rebuilt the vendor directory and created a new composer.lock file
7. ran composer update drupal/core (require set at 8.3.2)
8. ran composer update (after one at a time added back various drupal8 modules previously setup in composer and ran composer update until everything was updated again.
Comment #6
cilefen commented