简体   繁体   English

无法在YII2中通过作曲家安装任何软件包

[英]Unable to install any package by composer in YII2

I am trying to install package library by composer in YII2. 我正在尝试通过YII2中的作曲家安装软件包库。 But after running the command from my command prompt I am getting following error 但是从命令提示符运行命令后,出现以下错误

My composer command is 我的作曲家命令是

composer.phar require kartik-v/yii2-widget-datetimepicker "*"

Package yiisoft/yii2-codeception is abandoned, you should avoid using it. 软件包yiisoft / yii2-codeception被放弃了,您应该避免使用它。 Use codeception/codeception instead. 请改用代码接收/代码接收。

When installing by this command 通过此命令安装时

php composer.phar require kartik-v/yii2-social "@dev"

Then I am getting following error 然后我得到以下错误

Package facebook/php-sdk-v4 is abandoned, you should avoid using it. 软件包facebook / php-sdk-v4被放弃了,您应该避免使用它。 Use facebook/graph-sdk instead. 请改用facebook / graph-sdk。

Generating autoload files 生成自动加载文件

Please suggest me how can I resolve this error 请建议我如何解决此错误

This is not an error. 这不是错误。 This is just an information for you from composer that one of the required packages has been abandoned and you should not expect to get updates for it. 这只是从作曲家那里获取的信息,其中一个必需的软件包已被放弃,您不应该期望获得更新。

If you want to get rid of this information simply remove the mentioned packages from the composer.json file of your project. 如果要摆脱此信息,只需从项目的composer.json文件中删除提到的软件包。 If the package is not listed there it means that one of the required packages listed needs it as dependency so you can not remove it directly. 如果未在此处列出软件包,则意味着列出的所需软件包之一需要将其作为依赖项,因此您无法直接将其删除。

As for the Yii 2 - here is the current advanced project template's composer.json so you can update the one in your project - package yiisoft/yii2-codeception is no longer used. 至于Yii 2-这是当前高级项目模板的composer.json,因此您可以更新项目中的模板 -不再使用yiisoft/yii2-codeception软件包。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM