美文网首页
使用composer安装yii2失败

使用composer安装yii2失败

作者: 地狱咆哮Zzzzz | 来源:发表于2016-11-03 15:10 被阅读214次

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

相关文章

网友评论

      本文标题:使用composer安装yii2失败

      本文链接:https://www.haomeiwen.com/subject/joobuttx.html