【问题标题】:How to solve Guzzle Error in Laravel during package installation [duplicate]如何在安装包期间解决 Laravel 中的 Guzzle Error [重复]
【发布时间】:2022-01-11 23:45:03
【问题描述】:

尝试安装包但显示guzzle错误问题1,当前项目要求是

 "require": {
        "php": "^7.2",
        "fideloper/proxy": "^4.0",
        "guzzlehttp/guzzle": "^7.0",
        "guzzlehttp/psr7": "^1.6",
        "laravel/framework": "^6.2",
        "laravel/tinker": "^2.0",
        "php-http/curl-client": "^2.1"
    }, 

 Problem 1
    - Installation request for edujugon/laravel-google-ads ^1.2 -> satisfiable by edujugon/laravel-google-ads[1.2.0, 1.2.1, 1.2.10, 1.2.11, 1.2.12, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.2.6, 1.2.7, 1.2.8, 1.2.9].
    - Can only install one of: guzzlehttp/guzzle[6.5.x-dev, 7.0.1].
    - Can only install one of: guzzlehttp/guzzle[7.0.1, 6.5.x-dev].
    - Can only install one of: guzzlehttp/guzzle[6.5.x-dev, 7.0.1].
    - Conclusion: install guzzlehttp/guzzle 6.5.x-dev
    - Installation request for guzzlehttp/guzzle (locked at 7.0.1, required as ^7.0) -> edujugon by guzzlehttp/guzzle[7.0.1].

【问题讨论】:

标签: php laravel composer-php guzzle


【解决方案1】:

您需要做的就是允许 6.5

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

【讨论】:

  • 这对我不起作用
【解决方案2】:

Laravel 需要 "guzzlehttp/guzzle": "^7.0",但你的包需要 6.5。您需要创建问题here

【讨论】:

猜你喜欢
  • 2018-09-13
  • 2021-02-15
  • 2023-02-01
  • 1970-01-01
  • 2020-02-29
  • 2018-07-27
  • 1970-01-01
  • 1970-01-01
  • 2012-11-17
相关资源
最近更新 更多