我如何在 Symfony 4 中更新 Twig?
How can I update Twig in Symfony 4?
我正在尝试像这样更新 Symfony 4 中的 Twig:
composer require twig/twig
错误信息是:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- twig/extensions is locked to version v1.5.4 and an update of this package was not requested.
- twig/extensions v1.5.4 requires twig/twig ^1.27|^2.0 -> found twig/twig[v1.27.0, ..., v1.44.2, v2.0.0, ..., v2.14.4] but it conflicts with your root composer.json require (^3.3).
通常最简单的方法是首先删除阻止更新的软件包,然后在更新后重新安装它。首先做:
composer remove twig/extensions
然后
composer require twig/twig
composer require twig/extensions
这应该首先删除扩展,更新 twig,然后再次安装扩展。
我正在尝试像这样更新 Symfony 4 中的 Twig:
composer require twig/twig
错误信息是:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- twig/extensions is locked to version v1.5.4 and an update of this package was not requested.
- twig/extensions v1.5.4 requires twig/twig ^1.27|^2.0 -> found twig/twig[v1.27.0, ..., v1.44.2, v2.0.0, ..., v2.14.4] but it conflicts with your root composer.json require (^3.3).
通常最简单的方法是首先删除阻止更新的软件包,然后在更新后重新安装它。首先做:
composer remove twig/extensions
然后
composer require twig/twig
composer require twig/extensions
这应该首先删除扩展,更新 twig,然后再次安装扩展。