Tp5.1队列--对应版本think-queue扩展安装

本文讲述了如何处理ThinkPHP5中Composer插件不兼容和ThinkQueue版本要求的问题,包括更新ThinkInstaller、调整composer版本及正确安装对应ThinkQueue版本。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

目录

The "topthink/think-installer" plugin was skipped because it requires a Plugin API version ("^1.0") that does not match your Composer installation ("2.1.0"). You may need to run composer update with the "--no-plugins" option.#The%20%22topthink%2Fthink-installer%22%20plugin%20was%20skipped%20because%20it%20requires%20a%20Plugin%20API%20version%20(%22%5E1.0%22)%20that%20does%20not%20match%20your%20Composer%20installation%20(%222.1.0%22).%20You%20may%20need%20to%20run%20composer%20update%20with%20the%20%22--no-plugins%22%20option.

opthink/think-queue[v3.0.0, ..., v3.0.4] require topthink/framework ^6.0.0 -> found topthink/framework[v6.0.0, ..., v6.0.9] but it conflicts with your root composer.json require (5.1.*).#opthink%2Fthink-queue%5Bv3.0.0%2C%20...%2C%20v3.0.4%5D%20require%20topthink%2Fframework%20%5E6.0.0%20-%3E%20found%20topthink%2Fframework%5Bv6.0.0%2C%20...%2C%20v6.0.9%5D%20but%20it%20conflicts%20with%20your%20root%20composer.json%20require%20(5.1.*).

安装汇总图

验证是否安装成功


The "topthink/think-installer" plugin was skipped because it requires a Plugin API version ("^1.0") that does not match your Composer installation ("2.1.0"). You may need to run composer update with the "--no-plugins" option.

Problem 1
   - topthink/think-installer v2.0.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.1.0] but it does not match the constraint.
   - topthink/think-queue v1.1.4 requires topthink/think-installer >=1.0.10 -> satisfiable by topthink/think-installer[v2.0.0].
   - Root composer.json requires topthink/think-queue 1.1.4 -> satisfiable by topthink/think-queue[v1.1.4].

  • 信息提示:

当前核心文件库topthink/think-install需要对应使用composer1.0版本的composer来操作,而我们这边当前composer版本是2.1版本,建议使用 composer update --no-plugins 更新topthink/think-install TP5.1核心文件库,更新升级后即可用composer2.1进行当前版本的comoser操作。版本不对应的问题。

当然,也可以降级安装composer1.0操作,可行但不建议。

  • 解决方案:
//更新Tp5.1项目,拉取当前版本最新核心文件库 
composer update --no-plugins


opthink/think-queue[v3.0.0, ..., v3.0.4] require topthink/framework ^6.0.0 -> found topthink/framework[v6.0.0, ..., v6.0.9] but it conflicts with your root composer.json require (5.1.*).

  • 信息提示

当前安装的队列扩展为think-queue3 v3.0.*版本,对应需要安装在TP6.0版本,而我们当前版本为5.1,版本不相符。

  • 解决方案

默认安装最新版扩展,最新版对Tp中核心文件 topthink/framework版本要求比较高,最新版V3.0对应Tp6内核心文件,指定Tp5.1对应的think-queue扩展版本(这里使用1.1.4)

//拉取安装扩展包[需要指定扩展版本]]
composer require topthink/think-queue 1.1.4
//composer require topthink/think-queue  2.0.4 【使用2.0.4也测试成功】

安装汇总图

验证是否安装成功

新开公众号(倒计时文案表情包),欢迎加入

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

红尘炼炼心

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值