使用composer安装yii2失败

2016-11-03  本文已影响214人  地狱咆哮Zzzzz

composer global require "fxp/composer-asset-plugin:~1.1.1"

报错:

Changed current directory to C:/Users/none01/AppData/Roaming/Composer

Deprecation Notice: The Composer\Package\LinkConstraint\MultiConstraint class is deprecated, use Composer\Semver\Constraint\MultiConstraint instead. in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Package/LinkConstraint/MultiConstraint.php:17

Deprecation Notice: The Composer\Package\LinkConstraint\LinkConstraintInterface interface is deprecated, use Composer\Semver\Constraint\ConstraintInterface instead. in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Package/LinkConstraint/LinkConstraintInterface.php:17

[ReflectionException]

Class Fxp\Composer\AssetPlugin\Repository\NpmRepository does not exist

[ErrorException]

Declaration of Fxp\Composer\AssetPlugin\Repository\AbstractAssetsRepository::whatProvides() should be compatible with Composer\Repository\ComposerRepos

itory::whatProvides(Composer\DependencyResolver\Pool $pool, $name, $bypassFilters = false)

需要执行:

composer global require fxp/composer-asset-plugin --no-plugins

上一篇下一篇

猜你喜欢

热点阅读