laravel passport无法安装

vq8itlhq  于 2022-11-18  发布在  其他
关注(0)|答案(3)|浏览(236)

我正在使用laravel 7.x版本。我想要安装laravel passport。但是当我输入composer require laravel/passport时出现错误。* 使用laravel/framework的^8.1版本。/composer. json已经更新正在加载composer储存库和软件包信息更新依赖项(包括require-dev)您的需求无法解析为一组可安装的软件包。

Problem 1 - Conclusion: don't install laravel/framework v8.1.0 - laravel/ui v2.4.0 requires illuminate/support ^7.0 -> satisfiable by laravel/framework[v7.28.1], illuminate/support[7.x-dev, v7.0.0, v7.0.1, v7.0.2, v7.0.3, v7.0.4, v7.0.5, v7.0.6, v7.0.7, v7.0.8, v7.1.0, v7.1.1, v7.1.2, v7.1.3, v7.10.0, v7.10.1, v7.10.2, v7.10.3, v7.11.0, v7.12.0, v7.13.0, v7.14.0, v7.14.1, v7.15.0, v7.16.0, v7.16.1, v7.17.0, v7.17.1, v7.17.2, v7.18.0, v7.19.0, v7.19.1, v7.2.0, v7.2.1, v7.2.2, v7.20.0, v7.21.0, v7.22.0, v7.22.1, v7.22.2, v7.22.3, v7.22.4, v7.23.0, v7.23.1, v7.23.2, v7.24.0, v7.25.0, v7.26.0, v7.26.1, v7.27.0, v7.28.0, v7.28.1, v7.3.0, v7.4.0, v7.5.0, v7.5.1, v7.5.2, v7.6.0, v7.6.1, v7.6.2, v7.7.0, v7.7.1, v7.8.0, v7.8.1, v7.9.0, v7.9.1, v7.9.2]. - laravel/ui v2.4.0 requires illuminate/support ^7.0 -> satisfiable by laravel/framework[v7.28.1], illuminate/support[7.x-dev, v7.0.0, v7.0.1, v7.0.2, v7.0.3, v7.0.4, v7.0.5, v7.0.6, v7.0.7, v7.0.8, v7.1.0, v7.1.1, v7.1.2, v7.1.3, v7.10.0, v7.10.1, v7.10.2, v7.10.3, v7.11.0, v7.12.0, v7.13.0, v7.14.0, v7.14.1, v7.15.0, v7.16.0, v7.16.1, v7.17.0, v7.17.1, v7.17.2, v7.18.0, v7.19.0, v7.19.1, v7.2.0, v7.2.1, v7.2.2, v7.20.0, v7.21.0, v7.22.0, v7.22.1, v7.22.2, v7.22.3, v7.22.4, v7.23.0, v7.23.1, v7.23.2, v7.24.0, v7.25.0, v7.26.0, v7.26.1, v7.27.0, v7.28.0, v7.28.1, v7.3.0, v7.4.0, v7.5.0, v7.5.1, v7.5.2, v7.6.0, v7.6.1, v7.6.2, v7.7.0, v7.7.1, v7.8.0, v7.8.1, v7.9.0, v7.9.1, v7.9.2]. - laravel/ui v2.4.0 requires illuminate/support ^7.0 -> satisfiable by laravel/framework[v7.28.1], illuminate/support[7.x-dev, v7.0.0, v7.0.1, v7.0.2, v7.0.3, v7.0.4, v7.0.5, v7.0.6, v7.0.7, v7.0.8, v7.1.0, v7.1.1, v7.1.2, v7.1.3, v7.10.0, v7.10.1, v7.10.2, v7.10.3, v7.11.0, v7.12.0, v7.13.0, v7.14.0, v7.14.1, v7.15.0, v7.16.0, v7.16.1, v7.17.0, v7.17.1, v7.17.2, v7.18.0, v7.19.0, v7.19.1, v7.2.0, v7.2.1, v7.2.2, v7.20.0, v7.21.0, v7.22.0, v7.22.1, v7.22.2, v7.22.3, v7.22.4, v7.23.0, v7.23.1, v7.23.2, v7.24.0, v7.25.0, v7.26.0, v7.26.1, v7.27.0, v7.28.0, v7.28.1, v7.3.0, v7.4.0, v7.5.0, v7.5.1, v7.5.2, v7.6.0, v7.6.1, v7.6.2, v7.7.0, v7.7.1, v7.8.0, v7.8.1, v7.9.0, v7.9.1, v7.9.2]. - Can only install one of: laravel/framework[8.x-dev, v7.28.1]. - don't install illuminate/support 7.x-dev|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.0.0|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.0.1|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.0.2|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.0.3|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.0.4|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.0.5|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.0.6|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.0.7|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.0.8|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.1.0|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.1.1|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.1.2|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.1.3|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.10.0|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.10.1|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.10.2|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.10.3|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.11.0|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.12.0|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.13.0|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.14.0|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.14.1|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.15.0|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.16.0|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.16.1|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.17.0|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.17.1|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.17.2|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.18.0|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.19.0|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.19.1|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.2.0|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.2.1|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.2.2|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.20.0|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.21.0|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.22.0|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.22.1|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.22.2|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.22.3|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.22.4|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.23.0|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.23.1|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.23.2|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.24.0|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.25.0|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.26.0|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.26.1|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.27.0|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.28.0|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.28.1|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.3.0|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.4.0|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.5.0|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.5.1|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.5.2|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.6.0|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.6.1|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.6.2|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.7.0|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.7.1|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.8.0|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.8.1|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.9.0|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.9.1|don't install laravel/framework 8.x-dev - don't install illuminate/support v7.9.2|don't install laravel/framework 8.x-dev - Installation request for laravel/framework ^8.1 -> satisfiable by laravel/framework[8.x-dev, v8.1.0]. - Installation request for laravel/ui (locked at v2.4.0, required as ^2.1) -> satisfiable by laravel/ui[v2.4.0].

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

oewdyzsn

oewdyzsn1#

laravel/passport的最新版本v10.0仅支持Laravel 8.x。
如果您使用的是Laravel 7.x,则必须使用v9.x版本。因此,请执行以下操作:

composer require laravel/passport "^9.0"
gudnpqoy

gudnpqoy2#

  • 试试这个,对我有用 *
composer require paragonie/random_compat:2.*
composer require laravel/passport=~4.0
ippsafx7

ippsafx73#

运行特定版本。Laravel - 8我删除了composer.lock,使用passport 10.0更新composer.json已执行sudo composer需要laravel/passport“^10.0”

相关问题