Ildar Nasurlaev
Ildar Nasurlaev

Reputation: 307

Cannot install packages via composer in yii2

Every time when i try to install some package via composer in yii2. I have error like in picture.

picture

How can i fix this? Help me please!

Upvotes: 0

Views: 1206

Answers (4)

Ildar Nasurlaev
Ildar Nasurlaev

Reputation: 307

Thank you all for your advising! Compouser didn't accept any command the problem above had appear always. I think the problem appear after that i had change php.ini file. Problem solved by reinstaling Compouser and Xampp

Upvotes: 0

arash rahimi
arash rahimi

Reputation: 65

json file in your localhost and put your code in that

and then run command line and go to the composer.json directory

and then write composer init then cmd help you to continue the way

Upvotes: 1

Bizley
Bizley

Reputation: 18021

Upgrade fxp/composer-asset-plugin to latest version (1.2.1) and composer to latest version (1.2.0).

composer global require "fxp/composer-asset-plugin:^1.2.0"
composer selfupdate

Upvotes: 2

vijay nathji
vijay nathji

Reputation: 1638

Try this and then try to install packages

  php composer.phar global update fxp/composer-asset-plugin --no-plugins

Upvotes: 1

Related Questions