composer require -W webman/think-cache:~1.0
PS D:\phpstudy\WWW\videoWeb> composer require -W webman/think-cache:~1.0
./composer.json has been updated
Running composer update webman/think-cache --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- topthink/think-cache[v2.0.6, ..., 2.0.x-dev] require psr/simple-cache ^1.0 -> found psr/simple-cache[1.0.0, 1.0.1] but it conflicts with your root composer.json require (^3.0).
- webman/think-cache[v1.0.1, ..., v1.0.2] require topthink/think-cache ^2.0.6 -> satisfiable by topthink/think-cache[v2.0.6, v2.0.7, 2.0.x-dev].
- Root composer.json requires webman/think-cache ~1.0 -> satisfiable by webman/think-cache[v1.0.1, v1.0.2].
Installation failed, reverting ./composer.json to its original content.
安装方式似乎是没错 ,php 版本也低于8.1
PS D:\phpstudy\WWW\videoWeb> php -v
PHP 8.0.2 (cli) (built: Feb 3 2021 18:36:37) ( NTS Visual C++ 2019 x64 )
Copyright (c) The PHP Group
Zend Engine v4.0.2, Copyright (c) Zend Technologies
佬 ,怎么搞
删除
./composer.lock
安装8.0 还低啊 你得看看你安装的包的 composer.json 文件里面的依赖关系