【问题标题】:when update composer guzzle abandoned error当更新作曲家 guzzle 放弃错误
【发布时间】:2017-06-23 06:43:02
【问题描述】:

composer更新时出现此错误

Package guzzle/guzzle is abandoned, you should avoid using it. 
Use guzzlehttp/guzzle instead.

我该如何解决这个问题?

【问题讨论】:

  • 在您的 composer.json 中只需将 guzzle/guzzle 更改为它提到的那个,因为第一个已被放弃(如果您没有找到它,则意味着另一个包正在使用它)
  • "require": { "laravel/socialite" : "2.0.20", "oriceon/oauth-5-laravel": "dev-master", "laravel/framework": "5.0. 16”、“league/oauth2-client”:“0.10.1”、“vimeo/vimeo-api”:“1.1.0”、“guzzlehttp/guzzle”:“~6.0”、“google/apiclient”:“^ 2.1" },
  • 感谢您的回复。这是 composer.json 要求.. 我正在使用 guzzlehttp/guzzle 包,但错误是 guuzle/guzzle 包
  • 您使用的其中一个软件包可能在内部使用了 Guzzle。我会更新它们 - Laravel 现在最高到 5.4。

标签: php laravel composer-php guzzle


【解决方案1】:

此消息不是错误

试试

composer update

composer why guzzle/guzzle

【讨论】:

    【解决方案2】:

    如果安装了一个你没有明确要求的包,你可以使用 Composer 的why-not 命令来检查为什么安装这个包:

    composer why guzzle/guzzle
    

    【讨论】:

    • 请注意,此消息不是错误,而是建议!此通知并不意味着您的项目不再运行。
    猜你喜欢
    • 1970-01-01
    • 2021-08-07
    • 2018-10-13
    • 2015-11-26
    • 2016-07-22
    • 2016-03-22
    • 2015-09-13
    • 2016-05-14
    • 2015-07-24
    相关资源
    最近更新 更多