使用composer将Drupal从8.3.7更新到8.5.1

时间:2018-04-10 18:13:35

标签: drupal-8

我是Drupal的新手,我正在尝试了解更新过程。我在亚马逊服务器上运行Drupal 8.3.7。我将我的网站设置为维护模式。然后我尝试像这样更新:

composer update drupal/core --with-dependencies

然而它没有效果。所以我读了你可以使用以下命令检查阻塞依赖:

composer prohibits drupal/core:8.5.1

以下是结果,但我不知道如何从这里开始。我是否需要在" require"中添加依赖项?我的composer.json的一部分?

drupal/core    8.5.1  requires          asm89/stack-cors (^1.1)
drupal/drupal  8.3.7  does not require  asm89/stack-cors (but 1.0.0 is installed)
drupal/core    8.5.1  requires          symfony/class-loader (~3.4.0)
drupal/drupal  8.3.7  requires          symfony/class-loader (~2.8)
drupal/core    8.5.1  requires          symfony/console (~3.4.0)
drupal/drupal  8.3.7  requires          symfony/console (~2.8)
drupal/core    8.5.1  requires          symfony/dependency-injection (~3.4.0)
drupal/drupal  8.3.7  requires          symfony/dependency-injection (~2.8)
drupal/core    8.5.1  requires          symfony/event-dispatcher (~3.4.0)
drupal/drupal  8.3.7  requires          symfony/event-dispatcher (~2.8)
drupal/core    8.5.1  requires          symfony/http-foundation (~3.4.0)
drupal/drupal  8.3.7  requires          symfony/http-foundation (~2.8)
drupal/core    8.5.1  requires          symfony/http-kernel (~3.4.0)
drupal/drupal  8.3.7  requires          symfony/http-kernel (~2.8)
drupal/core    8.5.1  requires          symfony/process (~3.4.0)
drupal/drupal  8.3.7  requires          symfony/process (~2.8)
drupal/core    8.5.1  requires          symfony/routing (~3.4.0)
drupal/drupal  8.3.7  requires          symfony/routing (~2.8)
drupal/core    8.5.1  requires          symfony/serializer (~3.4.0)
drupal/drupal  8.3.7  requires          symfony/serializer (~2.8)
drupal/core    8.5.1  requires          symfony/translation (~3.4.0)
drupal/drupal  8.3.7  requires          symfony/translation (~2.8)
drupal/core    8.5.1  requires          symfony/validator (~3.4.0)
drupal/drupal  8.3.7  requires          symfony/validator (~2.8)
drupal/core    8.5.1  requires          symfony/yaml (~3.4.5)
drupal/drupal  8.3.7  requires          symfony/yaml (~2.8)
drupal/core    8.5.1  requires          twig/twig (^1.35.0)
drupal/drupal  8.3.7  does not require  twig/twig (but v1.25.0 is installed)

更新

我删除了" drupal / core:~8.3"来自"替换"并添加" drupal / core:~8.5"要求"要求" (不确定这是否正确,但此时我正在尝试任何事情)

然后尝试再次运行更新并收到此错误:

Package is not installed: drupal/drupal-8.3.7.0

更新2

好的,我添加了#34; drupal / core:~8.3"要求,并更新到8.3.9,然后我改为" drupal / core:~8.4"并删除了核心,然后我将其更改为" drupal / core:~8.5"它似乎已更新,但我的网站上有一些错误。例如,"配置"页面返回"网站遇到意外错误。请稍后再试。"显然我没有做到这一点。任何建议都会很棒。依赖关系似乎并不简单,我希望我不必每个月都要经历这个过程。 :(

0 个答案:

没有答案