gpt4 book ai didi

laravel - tymon/jwt-auth 包在 laravel 5.8 中显示错误

转载 作者:行者123 更新时间:2023-12-05 08:15:21 27 4
gpt4 key购买 nike

我安装了 Laravel 5.8 的新项目,但是当我安装 JWT Auth 包时,

composer require tymon/jwt-auth

显示错误信息

Your requirements could not be resolved to an installable set of packages.

Problem 1
- Installation request for tymon/jwt-auth ^0.5.12 -> satisfiable by tymon/jwt-auth[0.5.12].
- Conclusion: remove nesbot/carbon 2.17.0
- Conclusion: don't install nesbot/carbon 2.17.0
- tymon/jwt-auth 0.5.12 requires nesbot/carbon ~1.0 -> satisfiable by nesbot/carbon[1.0.0, 1.0.1, 1.1.0, 1.10.0, 1.11.0, 1.12.0, 1.13.0, 1.14.0, 1.15.0, 1.16.0, 1.17.0, 1.18.0, 1.19.0, 1.2.0, 1.20.0, 1.21.0, 1.22.0, 1.22.1, 1.23.0, 1.24.0, 1.24.1, 1.24.2, 1.25.0, 1.26.0, 1.26.1, 1.26.2, 1.26.3, 1.26.4, 1.27.0, 1.28.0, 1.29.0, 1.29.1, 1.29.2, 1.3.0, 1.30.0, 1.31.0, 1.31.1, 1.32.0, 1.33.0, 1.34.0, 1.34.1, 1.34.2, 1.34.3, 1.34.4, 1.35.0, 1.35.1, 1.36.0, 1.36.1, 1.36.2, 1.4.0, 1.5.0, 1.6.0, 1.7.0, 1.8.0, 1.9.0].
- Can only install one of: nesbot/carbon[1.26.3, 2.17.0].
- Can only install one of: nesbot/carbon[1.26.4, 2.17.0].
- Can only install one of: nesbot/carbon[1.27.0, 2.17.0].
- Can only install one of: nesbot/carbon[1.28.0, 2.17.0].
- Can only install one of: nesbot/carbon[1.29.0, 2.17.0].
- Can only install one of: nesbot/carbon[1.29.1, 2.17.0].
- Can only install one of: nesbot/carbon[1.29.2, 2.17.0].
- Can only install one of: nesbot/carbon[1.30.0, 2.17.0].
- Can only install one of: nesbot/carbon[1.31.0, 2.17.0].
- Can only install one of: nesbot/carbon[1.31.1, 2.17.0].
- Can only install one of: nesbot/carbon[1.32.0, 2.17.0].
- Can only install one of: nesbot/carbon[1.33.0, 2.17.0].
- Can only install one of: nesbot/carbon[1.34.0, 2.17.0].
- Can only install one of: nesbot/carbon[1.34.1, 2.17.0].
- Can only install one of: nesbot/carbon[1.34.2, 2.17.0].
- Can only install one of: nesbot/carbon[1.34.3, 2.17.0].
- Can only install one of: nesbot/carbon[1.34.4, 2.17.0].
- Can only install one of: nesbot/carbon[1.35.0, 2.17.0].
- Can only install one of: nesbot/carbon[1.35.1, 2.17.0].
- Can only install one of: nesbot/carbon[1.36.0, 2.17.0].
- Can only install one of: nesbot/carbon[1.36.1, 2.17.0].
- Can only install one of: nesbot/carbon[1.36.2, 2.17.0].
- Can only install one of: nesbot/carbon[1.0.0, 2.17.0].
- Can only install one of: nesbot/carbon[1.8.0, 2.17.0].
- Can only install one of: nesbot/carbon[1.9.0, 2.17.0].
- Installation request for nesbot/carbon (locked at 2.17.0) -> satisfiable by nesbot/carbon[2.17.0].


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

我尝试了所有方法,但似乎没有任何效果。然后,我检查这个链接 https://github.com/tymondesigns/jwt-auth/issues/1764

如何解决?

最佳答案

为了在 Laravel 5.8 中安装 JWTAuth,你需要使用以下命令

composer require tymon/jwt-auth:dev-develop

关于laravel - tymon/jwt-auth 包在 laravel 5.8 中显示错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55824542/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com