Hello All,
When i am trying to upgrade my drupal site from version 8.9.9 to drupal 9.0.0 in my local environment, but i'm stuck. Could you please find the following
C:\xampp\htdocs\d-master>composer update
Gathering patches for root package.
> DrupalProject\composer\ScriptHandler::checkComposerVersion
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires drupal/core-recommended 9.0.0 -> satisfiable by drupal/core-recommended[9.0.0].
- drupal/core-recommended 9.0.0 requires symfony/var-dumper v5.1.0 -> found symfony/var-dumper[v5.1.0] but it conflicts with your root composer.json require (4.0).
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
so i changed version of symfony/var-dumper from v4.0.0 to v5.1.0 then i got
C:\xampp\htdocs\d-master>composer update
Gathering patches for root package.
> DrupalProject\composer\ScriptHandler::checkComposerVersion
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires drush/drush 10.0.1 -> satisfiable by drush/drush[10.0.1].
- drush/drush 10.0.1 requires symfony/var-dumper ^3.4 || ^4.0 -> found symfony/var-dumper[v3.4.0-BETA1, ..., 3.4.x-dev, v4.0.0-BETA1, ..., 4.4.x-dev] but it conflicts with your root composer.json require (5.1.0).
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
So i am again changed symfony/var-dumper version to 4.0.0 i got the previous error.
attaching the json file in .txt format.
Could you please help me to solve this issue and upgrade to drupal 9 ?
| Comment | File | Size | Author |
|---|---|---|---|
| composer.json_.txt | 6.88 KB | toby_toby |
Comments
Comment #2
toby_toby commentedComment #3
longwaveYou have specified that you want exactly version 10.0.1 of Drush, which is not compatible with Drupal 9.
The following command requests Drupal 9.x and Drush 10.x (and also bumps
symfony/var-dumperagain) and works for me:This then fails with patches:
You will need to figure out which of the patches are no longer required and which need new versions.
You also don't actually need to specify
symfony/var-dumperin composer.json unless you are using it directly, Drupal core already depends on the correct version.Comment #4
toby_toby commented@longwave,thank you for your reply. patches removed which are no longer required. but error is still occur after running the command .
Problem 1
- Root composer.json requires drupal/core-recommended 9 -> satisfiable by drupal/core-recommended[9.0.0].
- drupal/core-recommended 9.0.0 requires symfony/var-dumper v5.1.0 -> found symfony/var-dumper[v5.1.0] but it conflicts with your root composer.json require (5).
Problem 2
- Root composer.json requires drush/drush 10 -> satisfiable by drush/drush[10.0.0].
- drush/drush 10.0.0 requires symfony/var-dumper ^3.4 || ^4.0 -> found symfony/var-dumper[v3.4.0-BETA1, ..., 3.4.x-dev, v4.0.0-BETA1, ..., 4.4.x-dev] but it conflicts with your root composer.json require (5).
Comment #5
longwaveAre you using Windows? The
^is a special character in Windows, you might need to put quotes around the version requirements or use^^instead, I'm not sure.Comment #6
toby_toby commented@longwave, Thanks for your support! :) I am using windows. As you suggested, I used the quotes around the version requirements. After that it's upgraded to Drupal 9.
Comment #7
longwaveThanks for getting back to us, happy that it worked!