2

我做了一个composer create-project laravel/laravel .和一个composer require tcg/voyager。我不断得到这个。

Using version ^1.4 for tcg/voyager
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Conclusion: don't install tcg/voyager v1.4.2
    - Conclusion: don't install tcg/voyager v1.4.1
    - Conclusion: don't install tcg/voyager v1.4.0
    - Conclusion: don't install tcg/voyager 1.x-dev
    - Conclusion: remove league/flysystem 1.1.0
    - Installation request for tcg/voyager ^1.4 -> satisfiable by tcg/voyager[1.4.x-dev, 1.x-dev, v1.4.0, v1.4.1, v1.4.2].
    - Conclusion: don't install league/flysystem 1.1.0
    - tcg/voyager 1.4.x-dev requires league/flysystem ~1.0.41 -> satisfiable by league/flysystem[1.0.41, 1.0.42, 1.0.43, 1.0.44, 1.0.45, 1.0.46, 1.0.47, 1.0.48, 1.0.49, 1.0.50, 1.0.51, 1.0.52, 1.0.53, 1.0.54, 1.0.55, 1.0.56, 1.0.57, 1.0.58, 1.0.59, 1.0.60, 1.0.61, 1.0.62, 1.0.63, 1.0.64, 1.0.65, 1.0.66, 1.0.67, 1.0.68, 1.0.69, 1.0.70, 1.0.x-dev].
    - Can only install one of: league/flysystem[1.0.41, 1.1.0].
    - Can only install one of: league/flysystem[1.0.42, 1.1.0].
    - Can only install one of: league/flysystem[1.0.43, 1.1.0].
    - Can only install one of: league/flysystem[1.0.44, 1.1.0].
    - Can only install one of: league/flysystem[1.0.45, 1.1.0].
    - Can only install one of: league/flysystem[1.0.46, 1.1.0].
    - Can only install one of: league/flysystem[1.0.47, 1.1.0].
    - Can only install one of: league/flysystem[1.0.48, 1.1.0].
    - Can only install one of: league/flysystem[1.0.49, 1.1.0].
    - Can only install one of: league/flysystem[1.0.50, 1.1.0].
    - Can only install one of: league/flysystem[1.0.51, 1.1.0].
    - Can only install one of: league/flysystem[1.0.52, 1.1.0].
    - Can only install one of: league/flysystem[1.0.53, 1.1.0].
    - Can only install one of: league/flysystem[1.0.54, 1.1.0].
    - Can only install one of: league/flysystem[1.0.55, 1.1.0].
    - Can only install one of: league/flysystem[1.0.56, 1.1.0].
    - Can only install one of: league/flysystem[1.0.57, 1.1.0].
    - Can only install one of: league/flysystem[1.0.58, 1.1.0].
    - Can only install one of: league/flysystem[1.0.59, 1.1.0].
    - Can only install one of: league/flysystem[1.0.60, 1.1.0].
    - Can only install one of: league/flysystem[1.0.61, 1.1.0].
    - Can only install one of: league/flysystem[1.0.62, 1.1.0].
    - Can only install one of: league/flysystem[1.0.63, 1.1.0].
    - Can only install one of: league/flysystem[1.0.64, 1.1.0].
    - Can only install one of: league/flysystem[1.0.65, 1.1.0].
    - Can only install one of: league/flysystem[1.0.66, 1.1.0].
    - Can only install one of: league/flysystem[1.0.67, 1.1.0].
    - Can only install one of: league/flysystem[1.0.68, 1.1.0].
    - Can only install one of: league/flysystem[1.0.69, 1.1.0].
    - Can only install one of: league/flysystem[1.0.70, 1.1.0].
    - Can only install one of: league/flysystem[1.0.x-dev, 1.1.0].
    - Installation request for league/flysystem (locked at 1.1.0) -> satisfiable by league/flysystem[1.1.0].

Installation failed, reverting ./composer.json to its original content.

我尝试清除缓存并重新启动该过程composer update --ignore-platform-reqs。这些似乎都不起作用。

我什至尝试在 voyager 之前安装 flysystem,就像这个讨论说的:

https://laracasts.com/discuss/channels/general-discussion/have-problems-with-laravel-53-voyager

4

2 回答 2

1

就我而言(当我运行以下命令时):

>composer require league/flysystem-sftp

PHP 警告:模块 'openssl' 已加载到第 0 行的未知中

警告:模块 'openssl' 已在第 0 行的未知中加载 使用版本 ^2.0 用于 League/flysystem-sftp ./composer.json 已更新 加载包含包信息的作曲家存储库 更新依赖项(包括 require-dev) 您的要求不能解析为一组可安装的软件包。

问题 1

- Conclusion: don't install league/flysystem-sftp 2.0.2
- Conclusion: don't install league/flysystem-sftp 2.0.1
- Conclusion: don't install league/flysystem-sftp 2.0.0
- Conclusion: don't install league/flysystem-sftp 2.0.0-RC1
- Conclusion: don't install league/flysystem-sftp 2.0.0-beta.3
- Conclusion: don't install league/flysystem-sftp 2.0.0-beta.2
- league/flysystem-sftp 2.0.0-alpha.4 requires league/flysystem 2.0.0-alpha.3 -> satisfiable by league/flysystem[2.0.0-alpha.3].
- league/flysystem-sftp 2.0.0-beta.1 requires league/flysystem 2.0.0-alpha.3 -> satisfiable by league/flysystem[2.0.0-alpha.3].
- Conclusion: don't install league/flysystem 2.0.0-alpha.3
- league/flysystem-sftp 2.0.0-alpha.3 requires league/flysystem 2.0.0-alpha.2 -> satisfiable by league/flysystem[2.0.0-alpha.2].
- Conclusion: don't install league/flysystem 2.0.0-alpha.2
- Installation request for laravel/framework (locked at v6.20.3, required as ^6.2) -> satisfiable by laravel/framework[v6.20.3].
- league/flysystem-sftp 2.0.0-alpha.1 requires league/flysystem 2.0.0-alpha.1 -> satisfiable by league/flysystem[2.0.0-alpha.1].
- league/flysystem-sftp 2.0.0-alpha.2 requires league/flysystem 2.0.0-alpha.1 -> satisfiable by league/flysystem[2.0.0-alpha.1].
- Conclusion: don't install league/flysystem 2.0.0-alpha.1
- Conclusion: don't install league/flysystem-sftp 2.x-dev|remove league/flysystem 1.1.3|install league/flysystem 2.0.0-alpha.1|install league/flysystem 2.0.0-alpha.2|install league/flysystem 2.0.0-alpha.3
- Conclusion: don't install league/flysystem-sftp 2.x-dev|don't install league/flysystem 1.1.3|install league/flysystem

2.0.0-alpha.1|安装联盟/flysystem 2.0.0-alpha.2|安装联盟/flysystem 2.0.0-alpha.3 - 联盟/flysystem-sftp ^2.0 的安装请求 -> 可满足联盟/flysystem- sftp[2.0.0, 2.0.0-RC1, 2.0.0-alpha.1, 2.0.0-alpha.2, 2.0.0-alpha.3, 2.0.0-alpha.4, 2.0.0-beta. 1、2.0.0-beta.2、2.0.0-beta.3、2.0.1、2.0.2、2.x-dev]。- 联赛/flysystem-sftp 2.x-dev 需要联赛/flysystem ^2.0.0 -> 可满足联赛/flysystem[2.0.0, 2.0.0-RC1, 2.0.0-alpha.1, 2.0.0-alpha .2、2.0.0-alpha.3、2.0.0-alpha.4、2.0.0-beta.1、2.0.0-beta.2、2.0.0-beta.3、2.0.1、2.0.2 , 2.x-dev]。

- Can only install one of: league/flysystem[2.0.0, 1.1.3].
- Can only install one of: league/flysystem[2.0.0-RC1, 1.1.3].
- Can only install one of: league/flysystem[2.0.0-alpha.4, 1.1.3].
- Can only install one of: league/flysystem[2.0.0-beta.1, 1.1.3].
- Can only install one of: league/flysystem[2.0.0-beta.2, 1.1.3].
- Can only install one of: league/flysystem[2.0.0-beta.3, 1.1.3].
- Can only install one of: league/flysystem[2.0.1, 1.1.3].
- Can only install one of: league/flysystem[2.0.2, 1.1.3].
- Can only install one of: league/flysystem[2.x-dev, 1.1.3].
- Installation request for league/flysystem (locked at 1.1.3) -> satisfiable by league/flysystem[1.1.3].

安装失败,正在将 ./composer.json 还原为其原始内容。


我已将上述错误修复如下:

>composer require league/flysystem-sftp 1.*
于 2021-01-12T04:14:40.707 回答
0

问题已在 PR 合并中解决。

https://github.com/the-control-group/voyager/pull/5040

Voyager 现已正确安装。

于 2020-08-10T08:33:19.047 回答