webman1.3.2安装webman-think-cache报错

楚羽幽


composer安装依赖完成后,直接运行webman,然后报错

1278 2 0
2个回答

six

think/think-cache版本低了吧,composer require topthink/think-cache ^v2.0.6 试下

  • 楚羽幽 2022-03-30

    好的

  • 楚羽幽 2022-03-30

    版本还更改该不了,貌似受webman/think-cache约束了

  • six 2022-03-30

    看了下,没有约束必须使用2.0

  • 楚羽幽 2022-03-30

    但官方就会报错以上的错误呀

  • six 2022-03-30

    和你说了,你装的 topthink/think-cache是2.0.0 太老了,最新的是装2.0.6。
    运行 composer require topthink/think-cache ^v2.0.6 来安装2.0.6。
    如果有依赖报错,你又不会处理,你就发出报错,大家教你处理

2548a

确实是版本问题,我安装think-orm 跟think-cache 都是低版本的,我是把webman的think插件卸载了,然后加个 -W 先下载最新think 包,然后再重新安装webman的think插件解决的.

  • 楚羽幽 2022-03-30

    刚才用的php7.4的安装的,现在安装php8.0后,发现出现了ErrorException: Method ReflectionParameter::getClass() is deprecated

  • 2548a 2022-03-30

    webman插件安装的think包版本低了,按我上面说的弄就好了,就是先安装最新think包, 再安装webman的think插件

  • 楚羽幽 2022-03-30

    好的

年代过于久远,无法发表回答
🔝