Hi all,
i want to upgrade my project's drupl version to 9. So i followed
https://www.drupal.org/docs/upgrading-drupal/upgrading-from-drupal-8-to-...
But unfortunately i am stuck in some areas.Could you please help me to upgrade 9??
OS :Windows10
Composer version : 2.0.0
also attaching the json file
after running composer update command, getting the error like
Problem 1
- composer/installers[v1.7.0, ..., v1.8.0] require composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
- Root composer.json requires drush/drush 10.0.0 -> satisfiable by drush/drush[10.0.0].
- drupal/core-recommended[9.2.0-beta1, ..., 9.2.0-beta2] require symfony/var-dumper v5.2.8 -> satisfiable by symfony/var-dumper[v5.2.8].
- Conclusion: don't install symfony/var-dumper v5.2.8 (conflict analysis result)
- drupal/core-recommended 9.2.0-beta3 requires symfony/var-dumper v5.3.0-RC1 -> satisfiable by symfony/var-dumper[v5.3.0-RC1].
- Conclusion: don't install symfony/var-dumper v5.3.0-RC1 (conflict analysis result)
- drupal/core-recommended[9.0.0-beta3, ..., 9.0.0-rc1] require symfony/var-dumper v5.0.8 -> satisfiable by symfony/var-dumper[v5.0.8].
- Conclusion: don't install symfony/var-dumper v5.0.8 (conflict analysis result)
- drupal/core-recommended[9.0.0, ..., 9.0.12] require symfony/var-dumper v5.1.0 -> satisfiable by symfony/var-dumper[v5.1.0].
- Conclusion: don't install symfony/var-dumper v5.1.0 (conflict analysis result)
- drupal/core-recommended[9.1.0-beta1, ..., 9.1.7] require symfony/var-dumper v5.1.8 -> satisfiable by symfony/var-dumper[v5.1.8].
- Conclusion: don't install symfony/var-dumper v5.1.8 (conflict analysis result)
- drupal/core-recommended[9.0.13, ..., 9.1.x-dev] require symfony/var-dumper v5.1.11 -> satisfiable by symfony/var-dumper[v5.1.11].
- Conclusion: don't install symfony/var-dumper v5.1.11 (conflict analysis result)
- drupal/core-recommended[9.2.0-rc1, ..., 9.3.x-dev] require symfony/var-dumper v5.3.0 -> satisfiable by symfony/var-dumper[v5.3.0].
- Conclusion: don't install symfony/var-dumper v5.3.0 (conflict analysis result)
- drupal/core-recommended 9.0.0-alpha1 requires composer/installers v1.7.0 -> satisfiable by composer/installers[v1.7.0].
- drupal/core-recommended[9.0.0-alpha2, ..., 9.0.0-beta2] require composer/installers v1.8.0 -> satisfiable by composer/installers[v1.8.0].
- drupal/core-recommended 9.2.0-alpha1 requires symfony/var-dumper v5.2.6 -> satisfiable by symfony/var-dumper[v5.2.6].
- Conclusion: don't install symfony/var-dumper v5.2.6 (conflict analysis result)
- drush/drush 10.0.0 requires symfony/var-dumper ^3.4 || ^4.0 -> satisfiable by symfony/var-dumper[v3.4.0-BETA1, ..., 3.4.x-dev, v4.0.0-BETA1, ..., 4.4.x-dev].
- You can only install one version of a package, so only one of these can be installed: symfony/var-dumper[v2.7.0-BETA1, ..., 2.8.x-dev, v3.0.0-BETA1, ..., 3.4.x-dev, v4.0.0-BETA1, ..., 4.4.x-dev, v5.0.0-BETA1, ..., 5.4.x-dev, 6.0.x-dev].
- drupal/core-recommended 9.1.0-alpha1 requires symfony/var-dumper v5.1.7 -> satisfiable by symfony/var-dumper[v5.1.7].
- Root composer.json requires drupal/core-recommended ^9 -> satisfiable by drupal/core-recommended[9.0.0-alpha1, ..., 9.3.x-dev].
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.
so i am running composer require symfony/var-dumper:"^5" symfony/console:"^5" and get another like
./composer.json has been updated
Running composer update symfony/console
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-composer-scaffold ^9, found drupal/core-composer-scaffold[9.0.0-alpha1, ..., 9.3.x-dev] but the package is fixed to 8.9.17 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
Problem 2
- Root composer.json requires drupal/core-recommended ^9, found drupal/core-recommended[9.0.0-alpha1, ..., 9.3.x-dev] but the package is fixed to 8.9.17 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
Problem 3
- Root composer.json requires drupal/ldap ^4.0.0-beta3, found drupal/ldap[dev-4.x, 4.0.0-beta3, 4.x-dev (alias of dev-4.x)] but the package is fixed to 3.0.0-beta7 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
Problem 4
- Root composer.json requires drupal/ldap_servers ^4.0.0-beta3, found drupal/ldap_servers[dev-4.x, 4.0.0-beta3, 4.x-dev (alias of dev-4.x)] but the package is fixed to 3.0.0-beta7 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
Problem 5
- Root composer.json requires drupal/permissions_by_term ^3.1.16, found drupal/permissions_by_term[3.1.16] but the package is fixed to 2.34.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
Problem 6
- Root composer.json requires drush/drush 10.0.0, found drush/drush[10.0.0] but the package is fixed to 9.7.3 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
Problem 7
- drupal/core 8.9.17 requires symfony/console ~3.4.0 -> found symfony/console[v3.4.0-BETA1, ..., 3.4.x-dev] but it conflicts with your root composer.json require (^5).
- drupal/devel 4.1.1 requires drupal/core ^8.8 || ^9 -> satisfiable by drupal/core[8.9.17].
- drupal/devel is locked to version 4.1.1 and an update of this package was not requested.
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
pls lead me if i'm wrong!