使用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
标签:plugin,--,require,升级包,hyperf,出错,composer,friendsofhyperf
From: https://www.cnblogs.com/zjhblogs/p/18031457