猿问

使用 league/flysystem 安装 Laravel + Voyager

我做了一个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].

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

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


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


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


侃侃无极
浏览 247回答 1
1回答

白衣非少年

就我而言(当我运行下面的命令时):>composer require league/flysystem-sftpPHP 警告:模块“openssl”已在第 0 行未知加载警告:模块“openssl”已在第 0 行未知中加载 使用 league/flysystem-sftp 的版本 ^2.0 ./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/flysystem2.0.0-alpha.1|安装 league/flysystem 2.0.0-alpha.2|安装 league/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-α.3、2.0.0-α.4、2.0.0-β.1、2.0.0-β.2、2.0.0-β.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.*

MM们

问题已在 PR Merge 上得到解决。https://github.com/the-control-group/voyager/pull/5040Voyager 现在可以正确安装。
随时随地看视频慕课网APP
我要回答