composer安装 think-cache和webman-api-sign问题

JackDx

截图

gitfei1231/webman-api-sign安装问题描述

composer require gitfei1231/webman-api-sign 

报错信息

Generating rules
Resolving dependencies through SAT

  Problem 1
    - gitfei1231/webman-api-sign[0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.0.6, 0.0.7, 0.0.8, 0.0.9, 0.0.10, 0.0.11, 0.0.12, 0.0.13, 0.0.14, 0.0.15, 0.0.16, 0.0.17, 0.0.18, 0.0.19, 0.0.
20, 0.0.21, 0.0.22] require psr/container 1.1.1 -> found psr/container[1.1.1] but the package is fixed to 2.0.2 (lock file version) by a partial update and that version does not ma
tch. Make sure you list it as an argument for the update command.
    - Root composer.json requires gitfei1231/webman-api-sign * -> satisfiable by gitfei1231/webman-api-sign[0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.0.6, 0.0.7, 0.0.8, 0.0.9, 0.0.10, 0
.0.11, 0.0.12, 0.0.13, 0.0.14, 0.0.15, 0.0.16, 0.0.17, 0.0.18, 0.0.19, 0.0.20, 0.0.21, 0.0.22].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require gitfei1231/webman-api-sign:*" to figure out if any version is installable, 
or "composer require gitfei1231/webman-api-sign:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

gitfei1231/webman-api-sign安装问题描述

composer require -W webman/think-cache

报错信息

Generating rules
Resolving dependencies through SAT

Dependency resolution completed in 0.002 seconds
Reading C:/Users/Administrator/AppData/Local/Composer/repo/https---repo.packagist.org/provider-psr~cache.json from cache
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - topthink/think-cache[v2.0.6, v2.0.7] 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].
    - Root composer.json requires webman/think-cache * -> satisfiable by webman/think-cache[v1.0.1, v1.0.2].

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 "comp
oser require webman/think-cache:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

老项目都是1.2的版本,最近打算用最新版webman1.5试一试一些创建,但是好像依赖各种不兼容啊?有解决办法嘛 感谢

585 2 0
2个回答

yongdao35

看提示啊,按照提示加-W啊

composer require -W webman/think-cache gitfei1231/webman-api-sign

我新建了一个webman项目,加 -W 没问题

JackDx

截图
我重新下载框架再composer require -W gitfei1231/webman-api-sign 也不行哇

🔝