简体   繁体   中英

Unable to install any package by composer in YII2

I am trying to install package library by composer in 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. 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. Use facebook/graph-sdk instead.

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. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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