我正在尝试为我正在处理的现有 Symfony 项目安装依赖项。我看了这个https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file它说我应该运行更新命令:php composer.phar update
。我这样做了,但出现以下错误:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- phpro/grumphp[v0.12.0, ..., v0.12.1] require composer-plugin-api ~1.0 -> found composer-plugin-api[2.1.0] but it does not match the constraint.
- Root composer.json requires phpro/grumphp ^0.12 -> satisfiable by phpro/grumphp[v0.12.0, v0.12.1].
似乎需要 Composer 1。尝试删除供应商文件夹并降级 Composercomposer self-update --1
。比跑composer install
or composer update
again.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)