composer报错Class Fxp\Composer\AssetPlugin\Repository\NpmRepository does not exist

2016-7-13 liyangweb.com 李杨 PHP

要安装yii2,先装了Composer,composer装好后,按照官网的步骤,执行

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

但是报错了  Class Fxp\Composer\AssetPlugin\Repository\NpmRepository does not exist

这是由于一个api更新了,需要执行以下命令就OK了

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

标签: PHP composer

发表评论:

Powered by emlog 冀ICP备13011830号-1