如何解决与根composer.json要求冲突的问题?

dip*_*irl 3 paypal laravel

当我想使用 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.
Run Code Online (Sandbox Code Playgroud)

有谁知道如何解决它?

小智 6

更改composer.json

"guzzlehttp/guzzle": "^6.3|^7.0.1",
Run Code Online (Sandbox Code Playgroud)

然后更新作曲家