编辑器错误:无法解析版本约束 >=~2



朋友,尝试运行

作曲家更新

出现以下错误:

c: wamp www mysystem>作曲家更新加载作曲家存储库 包装信息更新依赖项(包括require-dev)

[意外事件]无法解析版本约束

= 〜2:无效版本字符串" 〜2"

更新[ - prefer-source] [ - prefer-dist] [ - dry-run] [ - -DEV] [ - no-dev] [ - 洛克] [ - no-custom-installers] [ - no-autoloader] [ - no-scripts] [ - no-progress] [ - no -suggest] [ - 依赖性] [-v | vv | vvv | - verbose] [-o | - optimize-autoloader] [ - apcu-autoloader] [ - ignore-platform-reqs] [ - -P参考稳定] [ - prefer-lowest] [ - i | - 互动] [ - root-reqs] [ - ] [ - ] [ - ] [ - ] [ - ]

] ...

这是我的composer.json文件:

{
    "license": "BSD-3-Clause",
    "minimum-stability": "stable",
    "require": {
        "php": ">=5.4.0",
        "yiisoft/yii2": ">=2.0.5",
        "yiisoft/yii2-bootstrap": "*",
        "yiisoft/yii2-swiftmailer": "*",
        "fxp/composer-asset-plugin": "~1.1.1",       
        "trntv/yii2-datetime-widget": "*",
        "miloschuman/yii2-highcharts-widget": "dev-master",
        "kartik-v/yii2-money": "*",
        "kartik-v/yii2-slider": "*",
        "kartik-v/yii2-widget-datepicker": "@dev",
        "kartik-v/yii2-field-range": "*",
        "kartik-v/yii2-widget-colorinput": "*",
        "kartik-v/yii2-widget-sidenav": "@dev",
        "kartik-v/yii2-export": "@dev",
        "kartik-v/yii2-grid": "@dev",
        "yiidoc/yii2-redactor": "*",
        "tugmaks/yii2-google-maps": "dev-master",
        "yiisoft/yii2-imagine": "^2.0",
        "karpoff/yii2-crop-image-upload": "*",
        "cyneek/yii2-menu": "dev-master",
        "bupy7/yii2-widget-cropbox": "*",
        "philippfrenzel/yii2fullcalendar": "*",
        "kartik-v/yii2-widget-touchspin": "*"
    },
    "require-dev": {
        "yiisoft/yii2-debug": "*",
        "yiisoft/yii2-gii": "*",
        "yiisoft/yii2-faker": "*"
    },
    "config": {
        "process-timeout": 1800
    },
    "scripts": {
        "post-create-project-cmd": [
            "yii\composer\Installer::postCreateProject"
        ]
    },
    "extra": {
        "yii\composer\Installer::postCreateProject": {
            "setPermission": [
                {
                    "runtime": "0777",
                    "web/assets": "0777",
                    "yii": "0755"
                }
            ],
            "generateCookieValidationKey": [
                "config/web.php"
            ]
        },
        "asset-installer-paths": {
            "npm-asset-library": "vendor/npm",
            "bower-asset-library": "vendor/bower"
        }
    }
}

我尝试了W7和Ubuntu

尝试设置旧版本fxp/composer-asset-plugin

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

或安装最新的一个:

composer global require "fxp/composer-asset-plugin:dev-master"

相关内容

  • 没有找到相关文章

最新更新