windows 代客安装失败,因为依赖项冲突

问题描述 投票:0回答:1

我刚刚开始使用 laravel 来创建我的网站。我尝试安装 windows valet 来帮助我开发我的网站。我用的是窗户。 但是当我尝试使用

安装时

composer global require cretueusebiu/valet-window

命令,出现了几个错误:

- cretueusebiu/valet-windows[v0.1.0, ..., v0.1.2] require symfony/process ^3.0 -> found symfony/process[v3.0.0, ..., v3.4.47] but the package is fixed to v7.0.7 (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.
    - cretueusebiu/valet-windows[v0.1.3, ..., v0.1.8, v1.0.0, ..., v1.0.8, 2.0.3, ..., 2.0.14] require symfony/process ~2.7|~3.0 -> found symfony/process[v2.7.0, ..., v2.8.52, v3.0.0, ..., v3.4.47] but the package is fixed to v7.0.7 (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.
    - cretueusebiu/valet-windows[2.0.15, ..., 2.1.1] require symfony/process ~2.7|~3.0|~4.0 -> found symfony/process[v2.7.0, ..., v2.8.52, v3.0.0, ..., v3.4.47, v4.0.0, ..., v4.4.44] but the package is fixed to v7.0.7 (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.
    - cretueusebiu/valet-windows[2.1.2, ..., 2.1.5] require symfony/process ~2.7|~3.0|~4.0|~5.0 -> found symfony/process[v2.7.0, ..., v2.8.52, v3.0.0, ..., v3.4.47, v4.0.0, ..., v4.4.44, v5.0.0, ..., v5.4.39] but the package is fixed to v7.0.7 (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.
    - cretueusebiu/valet-windows[2.2.0, ..., 2.4.1] require symfony/process ^4.0|^5.0 -> found symfony/process[v4.0.0, ..., v4.4.44, v5.0.0, ..., v5.4.39] but the package is fixed to v7.0.7 (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.
    - cretueusebiu/valet-windows[2.5.0, ..., 2.5.2] require symfony/process ^4.0|^5.0|^6.0 -> found symfony/process[v4.0.0, ..., v4.4.44, v5.0.0, ..., v5.4.39, v6.0.0, ..., v6.4.7] but the package is fixed to v7.0.7 (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.
    - Root composer.json requires cretueusebiu/valet-windows * -> satisfiable by cretueusebiu/valet-windows[v0.1.0, ..., v0.1.8, v1.0.0, ..., v1.0.8, 2.0.3, ..., 2.5.2].

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

我尝试运行具有所有依赖项的选项,但错误仍然存在。我需要帮助

laravel composer-php laravel-valet laravel-11
1个回答
0
投票

你可以尝试使用composer global require cretueusebiu/valet-windows --with-all-dependency

© www.soinside.com 2019 - 2024. All rights reserved.