1、Warning: This development build of composer is over 30 days old. It is recommend
ed to update it by running "C:\ProgramData\ComposerSetup\bin\composer.phar self-
update" to get the latest version.
解決方法:
composer selfupdate
2、錯誤二:
You are running composer with xdebug enabled. This has a major impact on runtime
performance. See https://getcomposer.org/xdebug
安裝完成composer之后名党,cmd運(yùn)行composer出現(xiàn)上述錯誤,需要打開PHP配置文件php.ini牵现,找到zend_extension,講該配置項(xiàng)注釋掉即可解決
3橱野、Fatal error: Call to undefined method Fxp\Composer\AssetPlugin\Package\Version\V
ersionParser::parseLinks() in C:\Documents and Settings\Administrator\Applicatio
n Data\Composer\vendor\fxp\composer-asset-plugin\Repository\VcsPackageFilter.php
on line 272
解決方法:
刪除composer資源插件蘑辑,重新安裝
如果還有錯誤五续,嘗試全局更新 composer global update
4、如果是在使用yii框架的時(shí)候密强,會出現(xiàn)一下問題
The "yiisoft/yii2-composer" plugin requires composer-plugin-api 1.0.0, this *WIL L* break in the future and it should be fixed ASAP (require ^1.0 for example). The "fxp/composer-asset-plugin" plugin requires composer-plugin-api 1.0.0, this*WILL* break in the future and it should be fixed ASAP (require ^1.0 for example ).
解決辦法:
Yii2 需要 composer-plugin-api 1.0 以上的版本宴杀,運(yùn)行以下命令:
composer global require "fxp/composer-asset-plugin:~1.1.1"