最新版本的1.3.0安装illuminate数据库、redis都报版本错误。怎么弄呢?服务器环境是wsl1

hailin

Using version ^7.30 for illuminate/redis
./composer.json has been updated
Running composer update illuminate/redis
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1

  • illuminate/contracts[v7.0.0, ..., v7.30.6] require psr/container ^1.0 -> found psr/container[1.0.0, 1.1.0, 1.1.1, 1.1.2] but the package is fixed to 2.0.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
  • illuminate/redis[v7.30.0, ..., v7.30.6] require illuminate/contracts ^7.0 -> satisfiable by illuminate/contracts[v7.0.0, ..., v7.30.6].
  • Root composer.json requires illuminate/redis ^7.30 -> satisfiable by illuminate/redis[v7.30.0, ..., v7.30.6].

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 illuminate/redis:*" to figure out if any version is installable, or "composer require illuminate/redis:^2.1" if you know which you need.

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

1762 2 0
2个回答

xiuwang

按照提示执行
composer require illuminate/redis -W
试下呗

Tinywan

illuminate/contracts v7.30.6 需要 psr/container: ^1.0 ,但是你已经安装的 psr/container: ^2.0 所以需要你查看那个依赖包安装了 psr/container: ^2.0

通过以下命令查看依赖关系

composer why psr/container
年代过于久远,无法发表回答
×
🔝