composer update错误,[ReflectionException]类Fxp \ Composer \ AssetPlugin \ Repository \ NpmRepository不存在

时间:2017-10-23 02:45:30

标签: yii2 composer-php

我在尝试安装任何插件时遇到错误。

我试图删除:

composer global remove "fxp/composer-asset-plugin"

然后再次更新:

composer global require "fxp/composer-asset-plugin:*"

但我仍然遇到以下错误:

  

弃用通知:   不推荐使用Composer \ Package \ LinkConstraint \ MultiConstraint类,   请改用Composer \ Semver \ Constraint \ MultiConstraint。在   药业:// C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Package/LinkConstraint/MultiConstraint.php:17   弃用通知:   Composer \ Package \ LinkConstraint \ LinkConstraintInterface接口是   不推荐使用,请使用Composer \ Semver \ Constraint \ ConstraintInterface   代替。在   药业:// C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Package/LinkConstraint/LinkConstraintInterface.php:17

     

[ReflectionException]类   Fxp \ Composer \ AssetPlugin \ Repository \ NpmRepository不存在

     

[ErrorException]声明   FXP \作曲\ AssetPlugin \库\ AbstractAssetsRepository :: whatProvides(作曲\ DependencyResolv   er \ Pool $ pool,$ name)应兼容   作曲家\库\ ComposerRepository :: whatProvides(作曲\依赖新生
  dencyResolver \ Pool $ pool,$ name,$ bypassFilters = false)

任何人都可以帮我弄清楚我做错了什么以及如何解决它?

这是我的composer.json

"minimum-stability": "stable",
    "require": {
        "php": ">=5.4.0",
        "yiisoft/yii2": "~2.0.6",
        "yiisoft/yii2-bootstrap": "~2.0.0",
        "yiisoft/yii2-swiftmailer": "~2.0.0",
        "2amigos/yii2-date-picker-widget": "~1.0",      "kartik-v/yii2-widget-select2": "@dev",         "kartik-v/yii2-grid": "@dev",       "cebe/js-search": "~0.9",       "kartik-v/yii2-editable": "@dev",
        "phpoffice/phpexcel": "dev-develop"
    },
    "require-dev": {
        "yiisoft/yii2-debug": "~2.0.0",
        "yiisoft/yii2-gii": "~2.0.0",
        "yiisoft/yii2-faker": "~2.0.0",

        "codeception/base": "^2.2.3",
        "codeception/verify": "~0.3.1"
    },
    "config": {
        "process-timeout": 1800,
        "fxp-asset":{
            "installer-paths": {
                "npm-asset-library": "vendor/npm",
                "bower-asset-library": "vendor/bower"
            }
        }
    } }

0 个答案:

没有答案