Composer无法升级包locked at问题的解决

在CRMEB项目中遇到Composer包overtrue/wechat和symfony/event-dispatcher的版本冲突,尝试升级和移除操作导致死循环。解决方案是使用`composer remove`命令时加上`--update-no-dev`参数,这能避免开发依赖导致的问题。可能还需手动清理composer.lock和vendor/composer/installed.json中的旧记录,然后重新安装所需新版本组件。

在CRMEB项目上,想安装新的包,运行:

composer require yansongda/pay -vvv

出现提示

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package overtrue/wechat (locked at 3.3.33, required as ^4.2.33) is satisfiable by overtrue/wechat[3.3.33] but these conflict with your requirements or minimum-stability.
  Problem 2
    - The requested package symfony/event-dispatcher (locked at v2.8.52, required as ^5.2) is satisfiable by symfony/event-dispatcher[v2.8.52] but these conflict with your requirements or mini
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值