今天想在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 requestfortopthink/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.

Installation failed, reverting ./composer.json to its original content.

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

composer require topthink/think-worker=1.0.*

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

composer require workerman/workerman-for-win

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

 
 

小礼物走一走,来简书关注我

作者:hansel666
链接:https://www.jianshu.com/p/748e0b391aed
來源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。

最新文章

  1. vue-todolist
  2. POJ1635 树的最小表示
  3. 深入理解css系列:meta标签
  4. sql server 利用发布订阅方式实现数据库同步问题
  5. R语言串行与并行Apply用法
  6. xshell 远程连接Linux
  7. git版本库底层命令
  8. 火狐和google游览器的 hack独有识别 css
  9. linux产生静态库和动态库
  10. noj [1480] 懒惰的风纪委Elaine (多重背包)
  11. 导航条上UIBarButtonItem的更改方法(使用initWithCustomView:btn)
  12. Keil伪指令
  13. Mac在结构quick cocos2d-x编译环境
  14. Output\TEST.sct(7): error: L6236E: No section matches selector - no section to be FIRST/LAST.
  15. PAT (Advanced Level) 1111. Online Map (30)
  16. 2017-2018_OCR_papers汇总
  17. 图标跟着摄像机(Camera)orthographicSize的值改变大小
  18. B树与B+ 树
  19. CentOS7.5下安装Python3.7 --python3
  20. Linux - PWM的驱动编写【转】

热门文章

  1. CF803G - Periodic RMQ Problem 动态开点线段树 或 离线
  2. 2017福建省赛 FZU 2278 YYS 数学 大数
  3. Gym 100851 题解
  4. hdu 4725 The Shortest Path in Nya Graph(建图+优先队列dijstra)
  5. js中的所有兼容问题总结
  6. Linux系统调用表(x86_64)
  7. Dokit支持iOS本地crash查看功能
  8. 解决php中文乱码的两种方法
  9. 史上最全面的SignalR系列教程-目录汇总
  10. vue-cli3.0 Typescript 项目集成环信WebIM 群组聊天