使用League / flysystem安装Laravel + Voyager时,作曲家失败

时间:2020-08-10 07:17:43

标签: php laravel composer-php voyager flysystem

我做了一个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。这些似乎都不起作用。

我什至在航海家之前尝试安装flysystem,就像这样的讨论所说的:

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

2 个答案:

答案 0 :(得分:1)

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

>composer require league/flysystem-sftp

PHP 警告:模块 'openssl' 已在第 0 行的 Unknown 中加载

警告:模块 'openssl' 已经在 Unknown on line 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 - League/flysystem-sftp ^2.0 的安装请求 -> League/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]。 - League/flysystem-sftp 2.x-dev 需要 League/flysystem ^2.0.0 -> 可满足 League/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.*

答案 1 :(得分:0)

问题已在PR合并中解决。

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

Voyager现在可以正确安装。