安装webman/blade报错

peirenlei

问题描述

安装 webman/blade 报错

程序代码

composer require psr/container ^1.1.1 webman/blade

报错信息

./composer.json has been updated
Running composer update psr/container webman/blade
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/blade * -> satisfiable by webman/blade[dev-master, v1.5.1, v1.5.2, v1.5.3, v1.5.4, 9999999-dev].
    - 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, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev, v9.0.0-beta.1, ..., 9.x-dev] but the package is fixed to v11.34.2 (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.
    - webman/blade[dev-master, v1.5.4] require illuminate/view ^5.5|^6.0|^7.0|^8.0|^9.0|^10.0 -> found illuminate/view[v5.5.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev, v9.0.0-beta.1, ..., 9.x-dev, v10.0.0, ..., 10.x-dev] but the package is fixed to v11.34.2 (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.

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

再次跟换版本:

composer require psr/container ^1.1.1 webman/blade ^1.5.4
./composer.json has been updated
Running composer update psr/container webman/blade
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/blade ^1.5.4 -> satisfiable by webman/blade[v1.5.4].
    - webman/blade v1.5.4 requires illuminate/view ^5.5|^6.0|^7.0|^8.0|^9.0|^10.0 -> found illuminate/view[v5.5.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev, v9.0.0-beta.1, ..., 9.x-dev, v10.0.0, ..., 10.x-dev] but the package is fixed to v11.34.2 (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.

加入-W选项:

./composer.json has been updated
Running composer update psr/container webman/blade --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/blade ^1.5.4 -> satisfiable by webman/blade[v1.5.4].
    - webman/blade v1.5.4 requires illuminate/view ^5.5|^6.0|^7.0|^8.0|^9.0|^10.0 -> found illuminate/view[v5.5.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev, v9.0.0-beta.1, ..., 9.x-dev, v10.0.0, ..., 10.x-dev] but these were not loaded, likely because it conflicts with another require.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
154 1 0
1个回答

walkor 打赏

应该是你用了composer镜像,没有拉到最新的 webman/blade 版本,目前最新的 webman/blade 版本为 1.5.5
删除composer镜像试下

×
🔝