无法升级到Laravel 8

问题描述

我正在尝试升级(从https://laravel.com/docs/8.x/upgrade之后的7)。

Problem 1
    - Installation request for nexmo/client ^2.0 -> satisfiable by nexmo/client[2.0.0].
    - Can only install one of: guzzlehttp/guzzle[7.0.1,6.5.x-dev].
    - Can only install one of: guzzlehttp/guzzle[7.0.x-dev,6.5.x-dev].
    - Can only install one of: guzzlehttp/guzzle[7.1.x-dev,6.5.x-dev].
    - Conclusion: install guzzlehttp/guzzle 6.5.x-dev
    - Installation request for guzzlehttp/guzzle ^7.0.1 -> satisfiable by guzzlehttp/guzzle[7.0.1,7.0.x-dev,7.1.x-dev].

这是因为nexmo需要:

requires
PHP >=7.1
PHP-http/guzzle6-adapter ^2.0
nexmo/client-core ^2.0
Which locks it to guzzle6?

解决方法

按照documentation of that package所述,您还可以安装nexmo/client-core以及提供php-http/client-implementation的任何其他软件包-使您独立于Guzzle 6。

但是您还应该检查哪个其他软件包需要Guzzle7。这仍然是一个新版本(十周前发布),我不认为Laravel本身会强迫您使用Guzzle 7。