1

我正在尝试从 8.9.13 更新到 9.0.1(一般打算迁移到 9,而不是专门迁移到 9.0.1)

它在作曲家网站上。

我在跑:

composer require drupal/core:^9.0.1  drupal/core-dev:^9.0.1 --update-with-all-dependencies

我不断遇到以下错误:

Problem 1
    - drupal/loft_data_grids is locked to version 1.3.0 and an update of this package was not requested.
    - drupal/loft_data_grids 1.3.0 requires drupal/core ~8.0 -> found drupal/core[8.0.0-beta6, ..., 8.9.x-dev] but it conflicts with your root composer.json require (^9.0.1).
  Problem 2
    - drupal/upgrade_status is locked to version 3.4.0 and an update of this package was not requested.
    - drupal/upgrade_status 3.4.0 requires drupal/core ^8.7.0 -> found drupal/core[8.7.0-alpha1, ..., 8.9.x-dev] but it conflicts with your root composer.json require (^9.0.1).
  Problem 3
    - drupal/backup_migrate is locked to version 5.0.0-rc2 and an update of this package was not requested.
    - Conclusion: don't install symfony/process[v4.4.0-BETA1] | install symfony/process[v3.4.39] (conflict analysis result)
    - Conclusion: don't install symfony/process v3.4.39 (conflict analysis result)
    - Conclusion: don't install drupal/core 9.1.4 (conflict analysis result)
    - Conclusion: don't install symfony/process v4.4.0-BETA2 (conflict analysis result)
    - Conclusion: don't install symfony/process v4.4.0-RC1 (conflict analysis result)
    - Conclusion: don't install symfony/process v4.4.0 (conflict analysis result)
.... remvoed for brevity of symfony/profess v4.4.1 - 4.4.2 - etc until 4.4.19
    - Conclusion: don't install symfony/process v4.4.19 (conflict analysis result)
    - drupal/recaptcha 3.0.0 requires drupal/captcha ^1.0.0-alpha1 -> satisfiable by drupal/captcha[1.1.0].
    - drupal/recaptcha is locked to version 3.0.0 and an update of this package was not requested.
    - drush/drush is locked to version 10.3.6 and an update of this package was not requested.
    - drupal/captcha 1.1.0 requires drupal/core ^8.8 || ^9 -> satisfiable by drupal/core[9.0.1, ..., 9.2.x-dev].
    - drupal/core[9.0.1, ..., 9.2.x-dev] require symfony/process ^4.4 -> satisfiable by symfony/process[v4.4.0-BETA1, ..., 4.4.x-dev].
    - Conclusion: don't install symfony/process 4.4.x-dev (conflict analysis result)

任何人都可以帮助启发我吗?

提前致谢!

4

1 回答 1

1

仔细阅读问题陈述,对于问题 1

- drupal/loft_data_grids 1.3.0 requires drupal/core ~8.0

这表明Loft Data Grids对 Drupal 8.x 有约束,因此会出现错误。当您点击该链接时,您还将看到该项目没有 Drupal 9 版本,因此这已经阻止了您的升级。尝试并应用Drupal 9 就绪自动 Drupal 9 兼容性修复中的补丁。

这同样适用于Problem 2 Upgrade Status,尽管您在 Drupal 9 中不需要此模块,因此请考虑在升级之前删除此模块:

- drupal/upgrade_status 3.4.0 requires drupal/core ^8.7.0

我建议您首先修复尚未为 Drupal 9 准备好的模块约束,然后再尝试对 Drupal 9 运行 Composer 升级命令,因为它们都会以类似的方式停止升级。

请参阅使用 Composer 应用 Drupal 9 兼容性补丁需要 v8 only contrib 模块和 v9 补丁,以绕过尚未使用 Drupal 9 版本标记但具有可以应用的补丁的 Drupal 8 模块。

于 2021-02-04T19:14:12.117 回答