目录
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也测试成功】
安装汇总图
验证是否安装成功
新开公众号(倒计时文案表情包),欢迎加入