composer安裝依賴完成后,直接運(yùn)行webman,然后報(bào)錯(cuò)
think/think-cache版本低了吧,composer require topthink/think-cache ^v2.0.6 試下
composer require topthink/think-cache ^v2.0.6
好的
版本還更改該不了,貌似受webman/think-cache約束了
看了下,沒有約束必須使用2.0
但官方就會報(bào)錯(cuò)以上的錯(cuò)誤呀
和你說了,你裝的 topthink/think-cache是2.0.0 太老了,最新的是裝2.0.6。 運(yùn)行 composer require topthink/think-cache ^v2.0.6 來安裝2.0.6。 如果有依賴報(bào)錯(cuò),你又不會處理,你就發(fā)出報(bào)錯(cuò),大家教你處理
topthink/think-cache
確實(shí)是版本問題,我安裝think-orm 跟think-cache 都是低版本的,我是把webman的think插件卸載了,然后加個(gè) -W 先下載最新think 包,然后再重新安裝webman的think插件解決的.
剛才用的php7.4的安裝的,現(xiàn)在安裝php8.0后,發(fā)現(xiàn)出現(xiàn)了ErrorException: Method ReflectionParameter::getClass() is deprecated
webman插件安裝的think包版本低了,按我上面說的弄就好了,就是先安裝最新think包, 再安裝webman的think插件