首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >错误合并/注释-命令

错误合并/注释-命令
EN

Drupal用户
提问于 2018-02-08 08:34:49
回答 1查看 1.1K关注 0票数 1

在尝试使用Composer安装Drush时,我得到了一个有关合并/注释-命令的错误。“锁定在2.0.3”和“要求2.8.1”是什么意思?

这是一个错误:

代码语言:javascript
复制
Your requirements could not be resolved to an installable set of packages.

  Problem 1

- Installation request for drush/drush dev-master -> satisfiable by drush/drush[dev-master].
- Conclusion: remove consolidation/annotated-command 2.0.3
- Conclusion: don't install consolidation/annotated-command 2.0.3
- drush/drush dev-master requires consolidation/annotated-command ^2.8.1 -> satisfiable by consolidation/annotated-command[2.8.1, 2.8.2].
- Can only install one of: consolidation/annotated-command[2.8.1, 2.0.3].
- Can only install one of: consolidation/annotated-command[2.8.2, 2.0.3].
- Installation request for consolidation/annotated-command (locked at 2.0.3) -> satisfiable by consolidation/annotated-command[2.0.3].

Installation failed, reverting ./composer.json to its original content.
EN

回答 1

Drupal用户

发布于 2019-01-15 11:58:26

在我的composer.json中将drush/drush的最小版本更改为D1,然后运行composer update drush/drush之后,我会得到这个错误。

我只是通过执行composer require drush/drush:~9.0来解决这个问题,这导致了错误消息drush/drush 9.5.x-dev requires symfony/config ^3.4,所以在composer require drush/drush:~9.0能够成功完成之前,我必须执行composer require symfony/config:^3.4

不知道这是否是解决这种依赖冲突的唯一方法或最佳实践,但简而言之,这对我是有效的:

  1. composer require symfony/config:^3.4
  2. composer require drush/drush:~9.0
票数 1
EN
页面原文内容由Drupal提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://drupal.stackexchange.com/questions/255393

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档