运行composer时出错

时间:2017-05-05 08:25:29

标签: php yii2 composer-php

当我跑步时:

composer global required “fxp/composer-asset-plugin:^1.3.1”,

报告错误如下:

PHP Fatal error: Uncaught Error: Call to undefined method Composer\Package\RootPackage::getConfig()

1 个答案:

答案 0 :(得分:0)

使用此:

sudo composer global require "fxp/composer-asset-plugin:^1.3.1"