Composer throws [ReflectionException] Class Fxp\Composer\AssetPlugin\Repository\NpmRepository does not exist

后端 未结 7 486
-上瘾入骨i
-上瘾入骨i 2020-12-07 13:18

I installed the latest version (1.0.0. stable) of composer and in my Yii2 project I typed this:

php composer.phar update

It gives me this error

7条回答
  •  北海茫月
    2020-12-07 13:28

    About nine days ago (around end of March, 2016), Composer\Repository\ComposerRepository::whatProvides api changed. (#2668) So, if you have installed fxp/composer-asset-plugin globally, you should update it. You can do that with:

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

提交回复
热议问题