今天想在TP5上安装workerman,实现一个后台消息提醒功能。

第一步就卡住了,根据手册里说的首先通过composer安装

$ composer require topthink/think-worker

结果报错

$ composer require topthink/think-worker
Using version ^2.0 for topthink/think-worker
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.Problem 1- topthink/think-worker v2.0.5 requires topthink/framework 5.1.* -> satisfiable by topthink/framework[5.1.x-dev, v5.1-beta.1, v5.1-rc.1, v5.1-rc.2, v5.1-rc.3, v5.1.0, v5.1.1, v5.1.10, v5.1.11, v5.1.12, v5.1.13, v5.1.14, v5.1.15, v5.1.16, v5.1.17, v5.1.18, v5.1.19, v5.1.2, v5.1.3, v5.1.4, v5.1.5, v5.1.6, v5.1.7, v5.1.8, v5.1.9] but these conflict with your requirements or minimum-stability.- topthink/think-worker v2.0.4 requires topthink/framework 5.1.* -> satisfiable by topthink/framework[5.1.x-dev, v5.1-beta.1, v5.1-rc.1, v5.1-rc.2, v5.1-rc.3, v5.1.0, v5.1.1, v5.1.10, v5.1.11, v5.1.12, v5.1.13, v5.1.14, v5.1.15, v5.1.16, v5.1.17, v5.1.18, v5.1.19, v5.1.2, v5.1.3, v5.1.4, v5.1.5, v5.1.6, v5.1.7, v5.1.8, v5.1.9] but these conflict with your requirements or minimum-stability.- topthink/think-worker v2.0.3 requires topthink/framework 5.1.* -> satisfiable by topthink/framework[5.1.x-dev, v5.1-beta.1, v5.1-rc.1, v5.1-rc.2, v5.1-rc.3, v5.1.0, v5.1.1, v5.1.10, v5.1.11, v5.1.12, v5.1.13, v5.1.14, v5.1.15, v5.1.16, v5.1.17, v5.1.18, v5.1.19, v5.1.2, v5.1.3, v5.1.4, v5.1.5, v5.1.6, v5.1.7, v5.1.8, v5.1.9] but these conflict with your requirements or minimum-stability.- topthink/think-worker v2.0.2 requires topthink/framework 5.1.* -> satisfiable by topthink/framework[5.1.x-dev, v5.1-beta.1, v5.1-rc.1, v5.1-rc.2, v5.1-rc.3, v5.1.0, v5.1.1, v5.1.10, v5.1.11, v5.1.12, v5.1.13, v5.1.14, v5.1.15, v5.1.16, v5.1.17, v5.1.18, v5.1.19, v5.1.2, v5.1.3, v5.1.4, v5.1.5, v5.1.6, v5.1.7, v5.1.8, v5.1.9] but these conflict with your requirements or minimum-stability.- topthink/think-worker v2.0.1 requires topthink/framework 5.1.* -> satisfiable by topthink/framework[5.1.x-dev, v5.1-beta.1, v5.1-rc.1, v5.1-rc.2, v5.1-rc.3, v5.1.0, v5.1.1, v5.1.10, v5.1.11, v5.1.12, v5.1.13, v5.1.14, v5.1.15, v5.1.16, v5.1.17, v5.1.18, v5.1.19, v5.1.2, v5.1.3, v5.1.4, v5.1.5, v5.1.6, v5.1.7, v5.1.8, v5.1.9] but these conflict with your requirements or minimum-stability.- topthink/think-worker v2.0.0 requires topthink/framework 5.1.* -> satisfiable by topthink/framework[5.1.x-dev, v5.1-beta.1, v5.1-rc.1, v5.1-rc.2, v5.1-rc.3, v5.1.0, v5.1.1, v5.1.10, v5.1.11, v5.1.12, v5.1.13, v5.1.14, v5.1.15, v5.1.16, v5.1.17, v5.1.18, v5.1.19, v5.1.2, v5.1.3, v5.1.4, v5.1.5, v5.1.6, v5.1.7, v5.1.8, v5.1.9] but these conflict with your requirements or minimum-stability.- Installation request for topthink/think-worker ^2.0 -> satisfiable by topthink/think-worker[v2.0.0, v2.0.1, v2.0.2, v2.0.3, v2.0.4, v2.0.5].Installation failed, reverting ./composer.json to its original content.

这里提示说让恢复Composer.json文件,如果没错的话你能在文件里看到topthink这样的,把它删掉

网上找了好多资料,都不对,后来发现是workerman版本的问题,重新安装

这里后面的  -vvv 我也不知道是什么意思,有知道的朋友吗?欢迎留言告知,万分感谢。

composer require topthink/think-worker=1.0.* -vvv

如果需要在window下做服务端,还需要

composer require workerman/workerman-for-win -vvv

安装好以后项目根目录下的vendor目录下会多出两个文件夹,到这一步我们就可以根据手册里的说明测试了。

这是我工作中遇到的问题,记录下来,如果有什么不对的地方欢迎留言讨论交流。

转载于:https://www.cnblogs.com/blibli/p/9548428.html

composer安装Workerman报错:Installation failed, reverting ./composer.json to its original content....相关推荐

  1. 安装JDK报错:Failed to extract file RegUtils from the binary table

    安装JDK报错:Failed to extract file "RegUtils" from the binary table Details Version/s:1.4.2_03 ...

  2. 解决Mac安装tesserocr报错问题 Failed building wheel for

    解决Mac安装tesserocr报错问题 Failed building wheel for 参考文章: (1)解决Mac安装tesserocr报错问题 Failed building wheel f ...

  3. Android报错installation failed with message invalid file E://.....

    Android报错installation failed with message invalid file E://- 运行从别人电脑下载过来的代码时出现 Installation failed w ...

  4. 使用Composer安装项目时报错 Do not run Composer as root/super user!

    Composer安装项目时报错Do not run Composer as root/super user! composer报错 解决方案 composer报错 Changed current di ...

  5. 在Linux中安装MySQL报错“error: Failed dependencies: mysql-community-libs(x86-32) >= 5.7.9 is needed by my“

    异常 在Linux中安装MySQL报错: 原因 因为缺少相关的依赖,所以要先安装这些依赖才能安装MySQL成功. 解决 (注意:这种方法是错误的,安装后并不能启动MySQL成功) 在每个安装指令后面添 ...

  6. laravel的composer require报错:Installation failed, reverting ./composer.json to its original content.

    一.前言 查看laravel文档的时候,看到Laravel Passport 实现 API 认证这个是真不错,但是本地实际安装的时候,一直安装不上,报错信息如标题所述,这就很烦人了,下面记录一下解决过 ...

  7. R语言 Rstudio 安装 包 报错installation of package ‘*’ had non-zero exit status

    在安装r语言向量自回归包(vars)时候报错了  记录一下供其他朋友参考,有同类相似其他问题也可以联系我一起解决. ​​​​​​先贴报错信息 > install.packages("v ...

  8. Azkban上传文件报错installation Failed.Error chunking

    关于azkaban上传job压缩包报错问题的解决方案 在azkaban上传job压缩包如果出现 installation Failed Error Chunking 错误,可通过如下方法解决. 在my ...

  9. 遇到问题--k8s--helm安装prometheus报错Error: failed to download “stable/prometheus-operator“

    情况 使用helm安装prometheus命令如下: helm install prometheus stable/prometheus-operator 遇到报错: Error: failed to ...

最新文章

  1. C语言--static修饰变量
  2. 会计记忆总结之三:会计等式与复式记账
  3. 使用Ajax解析数据遇到的问题
  4. Linux用户和用户组和文件权限介绍
  5. 萌新的Python练习实例100例(六)斐波那契数列
  6. 低代码开发平台是什么
  7. wpf mvvm框架_[Windows] 在 Microsoft Docs 网站中挖掘 MVVM 的各种学习资源
  8. 前程无忧岗位数据爬取+Tableau可视化分析
  9. 在追寻梦想的路上,我们都一样
  10. 圆方树总结 [uoj30]Tourists
  11. 北森2020未来人才管理论坛:HR变革驱动中国企业转型
  12. Entity Framework Fluent API - Relationships
  13. 域名生成算法(DGA)基础总结
  14. 预测交通拥堵,TranSEC助力城市交通“智”变
  15. 将两页A4 pdf文档合并到一页A4页面上打印的方法
  16. 2023王道考研数据结构第一章---基本概念
  17. 视频剪辑调色软件:达芬奇18正式版 for mac
  18. OpenERP 千位分隔符(thousand separator)
  19. IEEE1394串行连接技术
  20. 一个上进的程序员是如何在工作中废掉的

热门文章

  1. MyBatis(3):SQL映射
  2. Android View 自定义RangeSeekBar范围选择器
  3. php 抓取天气情况 www.weather.com.cn
  4. js使用showModalDialog,弹出一个自适应大小窗口
  5. React Native中一些常用组件用法
  6. Error: listen EADDRINUSE: address already in use :::5000
  7. 谷歌浏览器安装Postman插件 亲测有效!!!
  8. flutter text 自动换行_Flutter 即学即用——05 StatelessWidget vs StatefulWidget
  9. winccweb发布画面不显示_wincc web navigator 发布用户名或密码错误问题
  10. 2.5D屏幕有什么好处?