Reputation: 307
Every time when i try to install some package via composer in yii2. I have error like in picture.
How can i fix this? Help me please!
Upvotes: 0
Views: 1206
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
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
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
Reputation: 1638
Try this and then try to install packages
php composer.phar global update fxp/composer-asset-plugin --no-plugins
Upvotes: 1