安装微信sdk报错,依赖冲突

wangsky522

问题描述

安装微信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[dev-dependabot/composer/phpstan/phpstan-tw-2.1, 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.

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

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

134 1 0
1个回答

^字符被powershell转义了,用下面命令装

composer require overtrue/wechat ~5.0
×
🔝