composer update更新安装依赖

Problem 1
- Root composer.json requires lcobucci/jwt 3.3.1, it is satisfiable by lcobucci/jwt[3.3.1] from composer repo (repo.packagist.org) but lcobucci/jwt[3.3.0, 3.4.5
, 3.4.x-dev] from composer repo (repo.ke51.cn) has higher repository priority. The packages with higher priority do not match your constraint and are therefore not i
nstallable. See getcomposer.org/repoprio for details and assistance.
Problem 2
- kwy/login[1.9.5, …, 1.9.8] require lcobucci/jwt ^3.3 -> found lcobucci/jwt[3.3.0, 3.4.5] but it conflicts with your root composer.json require (3.3.1).
- Root composer.json requires kwy/login ^1.9.5 -> satisfiable by kwy/login[1.9.5, 1.9.6, 1.9.7, 1.9.8].

百度翻译了一下,不太懂这个什么意思,试图手动在composer.json更改版本,但是没有作用

《L03 构架 API 服务器》
你将学到如 RESTFul 设计风格、PostMan 的使用、OAuth 流程,JWT 概念及使用 和 API 开发相关的进阶知识。
《G01 Go 实战入门》
从零开始带你一步步开发一个 Go 博客项目,让你在最短的时间内学会使用 Go 进行编码。项目结构很大程度上参考了 Laravel。
讨论数量: 5
Luson

看看php版本跟jwt 版本是否匹配

3年前 评论

换一个 composer 源看看,没有找到对应的版本,或者修改约束版本为 3.3.0

3年前 评论

应该是你写死了版本 lcobucci/jwt 3.3.1

但是 kwy/login 要求 lcobucci/jwt ^3.3 只找到了 lcobucci/jwt[3.3.0, 3.4.5]

跟你手动写的冲突了。

这样做,应该可以解决问题

composer remove lcobucci/jwt 

composer require  lcobucci/jwt:3.3.0 

composer require kwy/login
3年前 评论
chowjiawei

删除composer.lock,删除vendor,执行composer install 即可

3年前 评论
//composer.json,

"config": {
 //....
  "platform-check": false

}

不知道可管用。

3年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!