已解决:微信SDK安装报错;无法安装

leedom

问题描述

安装微信SDK的插件报错

报错信息

composer require overtrue/wechat ^5.0
The "5.0" constraint for "overtrue/wechat" appears too strict and will likely not match what you want. See https://getcomposer.org/constraints
./composer.json has been updated
Running composer update overtrue/wechat
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires overtrue/wechat 5.0 -> satisfiable by overtrue/wechat[5.0.0].
    - overtrue/wechat 5.0.0 requires overtrue/socialite dev-develop -> found overtrue/socialite[1.0.0, ..., 1.3.0, 2.0.0, ..., 2.x-dev, 3.0.0, ..., 3.x-dev, 4.0.0, ..., 4.x-dev] but it does not match the constraint.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

操作系统及workerman/webman等框架组件具体版本

"workerman/webman-framework": "V1.5.16",

已解决:
composer require overtrue/wechat:~5.0 -vvv

137 1 0
1个回答

Tinywan

和这个依赖包overtrue/socialite冲突了,可以先尝试卸载overtrue/socialite。再安装overtrue/wechat

  • 暂无评论
🔝