【发布时间】:2018-12-22 06:03:53
【问题描述】:
我在 cmd "composer require nesbot/carbon" 中试过,但我得到了这个:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/framework v5.6.27 requires nesbot/carbon 1.25.* -> satisfiable by nesbot/carbon[1.25.0] but these conflict with your requirements or minimum-stability.
- laravel/framework v5.6.27 requires nesbot/carbon 1.25.* -> satisfiable by nesbot/carbon[1.25.0] but these conflict with your requirements or minimum-stability.
- laravel/framework v5.6.27 requires nesbot/carbon 1.25.* -> satisfiable by nesbot/carbon[1.25.0] but these conflict with your requirements or minimum-stability.
- Installation request for laravel/framework (locked at v5.6.27, required as 5.6.*) -> satisfiable by laravel/framework[v5.6.27].
Installation failed, reverting ./composer.json to its original content.
【问题讨论】:
-
您需要新功能还是什么?看起来 Laravel 5.6 只允许 1.25 版本,所以你可能会通过升级到更新的东西来打破这种依赖。
-
除非您想要 Carbon 的新功能,否则无需升级。错误说明了自己,Laravel 需要为 5.6 版本维护该版本
标签: php laravel composer-php php-carbon