w7corp / easywechat

📦 一个 PHP 微信 SDK
https://easywechat.com
MIT License
10.29k stars 2.41k forks source link

安装指定版本不行 #2805

Closed uniquespider closed 7 months ago

uniquespider commented 7 months ago

我用的环境

image

问题及现象

目前想把6.8.0版本升级到6.12.4以上的稳定版本,不是6.x-dev这个版本,换了许多写法都不行,不知道怎么写了

指定版本写法:
composer require w7corp/easywechat:6.15.0
image

范围匹配写法:
composer require w7corp/easywechat:^6.12,这个会安装6.x-dev版本
composer require w7corp/easywechat:^6.12.4,这个也会安装6.x-dev版本

composer require w7corp/easywechat:^6.7,这个会安装6.8版本
``
<img width="455" alt="image" src="https://github.com/w7corp/easywechat/assets/26062592/89547a7c-36ab-4d8e-a8b3-9f14d066e309">

<img width="676" alt="image" src="https://github.com/w7corp/easywechat/assets/26062592/94f7419b-3f6b-4b1f-bde7-233db78f4219">
uniquespider commented 7 months ago

指定范围:"w7corp/easywechat": ">=6.12.4, <=6.15.0"

image
uniquespider commented 7 months ago

目前用的阿里云的源

uniquespider commented 7 months ago

好吧,是源的问题,切换官方源了composer config -g repo.packagist composer https://repo.packagist.org