安装失败将./composer.json恢复为原始内容。 laravel#1

时间:2017-04-22 10:58:24

标签: laravel

安装nexmo/laravel时出现以下错误。

C:\xampp\htdocs\myLaravel1>composer require nexmo/laravel 1.0.0-beta3

Problem 1
- Can only install one of: nexmo/client[1.0.0-beta3, 1.0.0-beta4].

- Can only install one of: nexmo/client[1.0.0-beta4, 1.0.0-beta3].

- Can only install one of: nexmo/client[1.0.0-beta3, 1.0.0-beta4].

- nexmo/laravel 1.0.0-beta3 requires nexmo/client 1.0.0-beta3 -> satisfiable
by nexmo/client[1.0.0-beta3].

- Installation request for nexmo/laravel 1.0.0-beta3 -> satisfiable by nexmo
/laravel[1.0.0-beta3].

- Installation request for nexmo/client (locked at 1.0.0-beta4, required as
@beta) -> satisfiable by nexmo/client[1.0.0-beta4].

提前谢谢。

1 个答案:

答案 0 :(得分:0)

要安装特定版本,您需要使用package_name:version语法

composer require nexmo/laravel:1.0.0-beta3

除了nexmo/client被锁定在版本1.0.0-beta4之外。所以你需要那个版本。所以试试这个:

composer require nexmo/laravel:1.0.0-beta4