yii2使用composer安装yii2-easy-wechat总是失败

发布于 2022-09-11 15:59:21 字数 9959 浏览 20 评论 0

问题描述

这是我要安装的扩展包:https://github.com/jianyan74/...
使用命令安装 composer require jianyan74/yii2-easy-wechat

问题出现的环境背景及自己尝试过哪些方法

报错信息如下:

$ composer require jianyan74/yii2-easy-wechat
Using version ^1.0 for jianyan74/yii2-easy-wechat
./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 jianyan74/yii2-easy-wechat 1.0.9
    - Conclusion: don't install jianyan74/yii2-easy-wechat 1.0.8
    - Conclusion: don't install jianyan74/yii2-easy-wechat 1.0.7
    - Conclusion: don't install jianyan74/yii2-easy-wechat 1.0.6
    - Conclusion: don't install jianyan74/yii2-easy-wechat 1.0.5
    - Conclusion: don't install jianyan74/yii2-easy-wechat 1.0.4
    - Conclusion: don't install jianyan74/yii2-easy-wechat 1.0.3
    - Conclusion: don't install jianyan74/yii2-easy-wechat 1.0.2
    - Conclusion: remove overtrue/socialite 1.3.0
    - Installation request for jianyan74/yii2-easy-wechat ^1.0 -> satisfiable by jianyan74/yii2-easy-wechat[1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9].
    - Conclusion: don't install overtrue/socialite 1.3.0
    - jianyan74/yii2-easy-wechat 1.0.1 requires overtrue/wechat ~4.0 -> satisfiable by overtrue/wechat[4.0.0, 4.0.1, 4.0.10, 4.0.11, 4.0.12, 4.0.13, 4.0.14, 4.0.15, 4.0.16, 4.0.17, 4.0.18, 4.0.19, 4.0.2, 4.0.20, 4.0.21, 4.0.22, 4.0.23, 4.0.24, 4.0.25, 4.0.26, 4.0.27, 4.0.28, 4.0.29, 4.0.3, 4.0.30, 4.0.31, 4.0.32, 4.0.33, 4.0.34, 4.0.35, 4.0.36, 4.0.37, 4.0.38, 4.0.39, 4.0.4, 4.0.40, 4.0.41, 4.0.42, 4.0.5, 4.0.6, 4.0.7, 4.0.8, 4.0.9, 4.1.0, 4.1.1, 4.1.10, 4.1.11, 4.1.12, 4.1.15, 4.1.2, 4.1.3, 4.1.4, 4.1.5, 4.1.6, 4.1.7, 4.1.8, 4.1.9].
    - overtrue/wechat 4.0.0 requires overtrue/socialite ^2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.1 requires overtrue/socialite ^2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.10 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.11 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.12 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.13 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.14 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.15 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.16 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.17 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.18 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.19 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.2 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.20 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.21 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.22 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.23 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.24 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.25 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.26 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.27 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.28 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.29 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.3 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.30 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.31 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.32 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.33 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.34 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.35 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.36 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.37 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.38 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.39 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.4 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.40 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.41 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.42 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.5 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.6 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.7 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.8 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.0.9 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.1.0 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.1.1 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.1.10 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.1.11 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.1.12 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.1.15 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.1.2 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.1.3 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.1.4 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.1.5 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.1.6 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.1.7 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.1.8 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - overtrue/wechat 4.1.9 requires overtrue/socialite ~2.0 -> satisfiable by overtrue/socialite[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - Can only install one of: overtrue/socialite[2.0.0, 1.3.0].
    - Can only install one of: overtrue/socialite[2.0.1, 1.3.0].
    - Can only install one of: overtrue/socialite[2.0.2, 1.3.0].
    - Can only install one of: overtrue/socialite[2.0.3, 1.3.0].
    - Installation request for overtrue/socialite (locked at 1.3.0) -> satisfiable by overtrue/socialite[1.3.0].


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

百度搜索多次,没有类似问题,我也尝试升级YII2再进行安装,结果没有任何用处,报错仍然一模一样

你期待的结果是什么?实际看到的错误信息又是什么?

期待能有大神帮忙解答

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我家小可爱 2022-09-18 15:59:21

jianyan74/yii2-easy-wechat依赖overtrue/socialite2.0以上
但是之前项目里已有overtrue/socialite1.3.0扩展
overtrue/socialite移除掉重新安装就可以了

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文