【问题标题】:How to solve problem conflicts with your root composer.json require?如何解决与您的根 composer.json 要求的问题冲突?
【发布时间】:2022-01-12 04:41:25
【问题描述】:

当我想使用 composer require srmklive/paypal 来作曲家安装 srmklive/paypal 时,我收到类似 belok 的错误:

 Problem 1
    - srmklive/paypal[v3.0, ..., 3.0.10] require guzzlehttp/guzzle ~7.0 -> found guzzlehttp/guzzle[7.0.0, ..., 7.4.1] but it conflicts with your root composer.json require (^6.3).
    - Root composer.json requires srmklive/paypal ^3.0 -> satisfiable by srmklive/paypal[v3.0, ..., 3.0.10].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

有人知道怎么解决吗?

【问题讨论】:

  • 表示你在主composer.json上手动添加了guzzlehttp/guzzle: ^6.3,有什么原因吗?可以升级到^7.0吗?

标签: laravel paypal


【解决方案1】:

composer.json 的变化

"guzzlehttp/guzzle": "^6.3|^7.0.1",

然后更新作曲家

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-01-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多