安装 Laravel 5.8 + Voyager 时 Composer 失败
Composer failure when installing Laravel 5.8 + Voyager
我安装了 laravel 5.8,然后安装了 composer require tcg/voyager:1.3.2
。我没有使用 composer require tcg/voyager
因为它显然不支持 laravel 5.8。但是它一直失败并抛出这个问题:
Problem 1
- Can only install one of: league/flysystem[1.1.3, 1.0.x-dev].
- Can only install one of: league/flysystem[1.0.x-dev, 1.1.3].
- Can only install one of: league/flysystem[1.0.x-dev, 1.1.3].
- tcg/voyager v1.3.2 requires league/flysystem ~1.0.41 -> satisfiable by league/flysystem[1.0.x-dev].
- Installation request for tcg/voyager 1.3.2 -> satisfiable by tcg/voyager[v1.3.2].
- Installation request for league/flysystem 1.1.3 -> satisfiable by league/flysystem[1.1.3].
我尝试在 voyager 之前先安装 composer require league/flysystem:1.1.3
,但仍然失败并出现相同的错误。我在这里迷路了。
您检查过league/flysystem
之前是否安装过吗?根据该错误消息,它安装在 v1.1.3 中,而 tcg/voyager
需要 v1.0.* - 这是不兼容的。
flysystem 的 v1.1 非常新,只有 Voyager 的当前开发分支包含对此的修复。
要解决这种情况,您可以 运行 composer require league/flysystem:"~1.0.41"
我安装了 laravel 5.8,然后安装了 composer require tcg/voyager:1.3.2
。我没有使用 composer require tcg/voyager
因为它显然不支持 laravel 5.8。但是它一直失败并抛出这个问题:
Problem 1
- Can only install one of: league/flysystem[1.1.3, 1.0.x-dev].
- Can only install one of: league/flysystem[1.0.x-dev, 1.1.3].
- Can only install one of: league/flysystem[1.0.x-dev, 1.1.3].
- tcg/voyager v1.3.2 requires league/flysystem ~1.0.41 -> satisfiable by league/flysystem[1.0.x-dev].
- Installation request for tcg/voyager 1.3.2 -> satisfiable by tcg/voyager[v1.3.2].
- Installation request for league/flysystem 1.1.3 -> satisfiable by league/flysystem[1.1.3].
我尝试在 voyager 之前先安装 composer require league/flysystem:1.1.3
,但仍然失败并出现相同的错误。我在这里迷路了。
您检查过league/flysystem
之前是否安装过吗?根据该错误消息,它安装在 v1.1.3 中,而 tcg/voyager
需要 v1.0.* - 这是不兼容的。
flysystem 的 v1.1 非常新,只有 Voyager 的当前开发分支包含对此的修复。
要解决这种情况,您可以 运行 composer require league/flysystem:"~1.0.41"