0
点赞
收藏
分享

微信扫一扫

composer 问题集合


一.解决lumen5.6composer update 报 You can run ‘./vendor/bin/upgrade-carbon’ to get help in updating carbon

报错详情:

You can run ‘./vendor/bin/upgrade-carbon’ to get help in updating carbon and other frameworks and libraries that depend on it.

 解决办法:

在composer.json的require中增加

"kylekatarnls/laravel-carbon-2": "^1.0.0",
        "nesbot/carbon": "2.16.3 as 1.34.0"

 问题解决

二.Symfony\Component\Debug\Exception\FatalErrorException

Declaration of Symfony\Component\Translation\TranslatorInterface::setLocale($locale) must be compatible with Symfony\Contracts\Translation\LocaleAwareInterface::setLocale(string $locale)

由于升级php版本导致,查看composer.json PHP版本是否和web PHP版本一致

改完版本号之后执行 sudo composer update 

返现还不是不行

在composer.json引入"symfony/translation": "4.3.8"扩展包,保存composr.json文件后,使用sudo composer update来安

问题解决

举报

相关推荐

0 条评论