composer命令什么都不做

时间:2016-11-08 11:46:17

标签: php yii yii2 composer-php yii2-advanced-app

我在我的项目中使用xampp在Windows 10中使用yii2,但是composer命令完全没有

要了解更多信息,我必须补充一点,编辑器命令适用于每个路径执行一个项目。

my composer.json:

{
    "name": "yiisoft/yii2-app-advanced",
    "description": "Yii 2 Advanced Project Template",
    "keywords": ["yii2", "framework", "advanced", "project template"],
    "homepage": "http://www.yiiframework.com/",
    "type": "project",
    "license": "BSD-3-Clause",
    "support": {
        "issues": "https://github.com/yiisoft/yii2/issues?state=open",
        "forum": "http://www.yiiframework.com/forum/",
        "wiki": "http://www.yiiframework.com/wiki/",
        "irc": "irc://irc.freenode.net/yii",
        "source": "https://github.com/yiisoft/yii2"
    },
    "minimum-stability": "stable",
    "require": {
        "php": ">=5.4.0",
        "yiisoft/yii2": ">=2.0.6",
        "yiisoft/yii2-bootstrap": "*",
        "yiisoft/yii2-swiftmailer": "*",
        "franciscomaya/yii2-sceditor": "dev-master",
        "kartik-v/yii2-widget-sidenav": "*",
        "mohammad-mahdy/yii2-jdate": "*",
        "2amigos/yii2-ckeditor-widget" : "*",
        "2amigos/yii2-gallery-widget": "~1.0",
        "romka-chev/yii2-swiper" : "*",
        "kartik-v/yii2-widgets": "*",
        "kartik-v/yii2-grid": "@dev",
        "yiisoft/yii2-imagine": "*",
        "omnilight/yii2-shopping-cart": "*",
        "fxp/composer-asset-plugin": "^1.0"
    },
    "require-dev": {
        "yiisoft/yii2-codeception": "*",
        "yiisoft/yii2-debug": "*",
        "yiisoft/yii2-gii": "*",
        "yiisoft/yii2-faker": "*"

    },
    "config": {
        "process-timeout": 1800
    },
    "extra": {
        "asset-installer-paths": {
            "npm-asset-library": "vendor/npm",
            "bower-asset-library": "vendor/bower"
        }
    }
}

例如,我想使用composer update命令更新编辑器,但结果没有任何反应。

你知道问题是什么吗?

enter image description here

This page没有帮助我。

请帮我解决问题。

2 个答案:

答案 0 :(得分:6)

帮助我的是在PHP风暴中关闭了调试器...所以,还要检查一下

答案 1 :(得分:1)

试试这个

请从项目文件夹中删除composer.phar,composer2.phar and composer.bat,然后重试。

确保在执行此操作之前进行备份