安装 webman/blade 报错

rouxyang

问题描述

安装 webman/blade 报错。

程序代码

composer require webman/blade

报错信息

  Problem 1
    - Root composer.json requires webman/blade * -> satisfiable by webman/blade[v1.5.1, v1.5.2, v1.5.3].
    - webman/blade[v1.5.1, ..., v1.5.3] require illuminate/view ^5.5|^6.0|^7.0|^8.0|^9.0 -> found illuminate/view[v5.5.0, ..., v5.8.36, v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.4] but the package is fixed to v10.4.0 (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.

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

操作系统及workerman/webman等框架组件具体版本

MAC + PHP 8.2
Webman-framework v1.5.2

1339 1 0
1个回答

liziyu

-w

  • rouxyang 2023-03-26

    大佬,加了 -w 和 -W都不行。

    webman/blade 现在最高是支持到 illuminate/view 9,
    但别的组件已经把 illuminate/view 锁定在10了。

  • walkor 2023-03-26

    composer require psr/container ^1.1.1 webman/blade ^1.5.4

  • rouxyang 2023-03-26

    可以了。感谢。

年代过于久远,无法发表回答
×
🔝