Loading

composer 安装依赖包出错,使用-W 参数升级包

使用composer 安装依赖失败

 composer require friendsofhyperf/pest-plugin-hyperf --dev

提示信息:

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

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

加 -W "--with-all-dependencies" 允许更新其他依赖 后安装成功

 composer require friendsofhyperf/pest-plugin-hyperf --dev -W

posted @ 2024-02-24 19:23  ZJH_BLOGS  阅读(386)  评论(0编辑  收藏  举报