composer require -W webman/think-cache 安装报错

learner

./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

  • Root composer.json requires webman/think-cache * -> satisfiable by webman/think-cache[dev-main, v1.0.1, v1.0.2].
  • topthink/think-cache[v2.0.6, ..., 2.0.x-dev] require psr/cache ~1.0 -> found psr/cache[1.0.0, 1.0.1] but these were not loaded, likely because it conflicts with another require.
  • 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].
  • webman/think-cache dev-main requires workerman/webman-framework ^2.0 || dev-master -> found workerman/webman-framework[dev-master, v2.0.0] but it conflicts with your root composer.json require (^1.5.0).

You can also try re-running composer require with an explicit version constraint, e.g. "composer require webman/think-cache:*" to figure out if any version is installable, or "composer require webman/think-cache:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
这是安装的包
"php": ">=8.2",
"workerman/webman-framework": "^1.5.0",
"monolog/monolog": "^2.0",
"ext-simplexml": "",
"vlucas/phpdotenv": "^5.6",
"ext-json": "
",
"twig/twig": "^3.11",
"ext-pdo": "",
"webman/console": "^1.3",
"illuminate/database": "^8.83",
"illuminate/pagination": "^8.83",
"illuminate/events": "^8.83",
"symfony/var-dumper": "^6.4",
"laravel/serializable-closure": "^2.0",
"ext-redis": "
",
"illuminate/redis": "^8.83",
"overtrue/wechat": "~5.0",
"ext-curl": "",
"ext-openssl": "
",
"ext-gd": "*",
"webman/event": "^1.0",
"psr/container": "1.1.1",
"php-di/php-di": "6.3",
"doctrine/annotations": "1.14",
"overtrue/pinyin": "^5.3",
"symfony/cache": "^6.4",
"psr/simple-cache": "^1.0",
"shopwwi/laravel-cache": "^1.0",
"illuminate/cache": "^8.83",
"illuminate/filesystem": "^8.83",
"workerman/validation": "^3.1",
"webman/think-orm": "^1.1"

109 1 0
1个回答

six

文档说 think-cache 不支持 8.1及以上

×
🔝