Composer更新无法更新laravel依赖项

Dav*_*kee 3 php laravel composer-php laravel-4

当我尝试运行composer update时,出现以下错误:

[RuntimeException]
Error Output: '$_' is not recognized as an internal or external command,
operable program or batch file.
Run Code Online (Sandbox Code Playgroud)

我不确定为什么会发生这种情况,但我已经尝试更新作曲家本身(成功运行)并且它不起作用.作曲家通常工作得很好,所以我有点困惑.

添加了作曲家文件:

{
    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "require": {
        "laravel/framework": "4.1.*",
        "bogardo/mailgun": "dev-master"
    },
    "autoload": {
        "classmap": [
            "app/commands",
            "app/controllers",
            "app/models",
            "app/database/migrations",
            "app/database/seeds",
            "app/tests/TestCase.php"
        ]
    },
    "scripts": {
        "post-install-cmd": [
            "php artisan clear-compiled",
            "php artisan optimize"
        ],
        "post-update-cmd": [
            "php artisan clear-compiled",
            "php artisan optimize"
        ],
        "post-create-project-cmd": [
            "php artisan key:generate"
        ]
    },
    "config": {
        "preferred-install": "dist"
    },
    "minimum-stability": "stable"
}
Run Code Online (Sandbox Code Playgroud)

Dav*_*kee 7

我好像已经解决了我的问题.我需要保留脚本,因为它支持我的部署.我需要跑composer update --no-scripts,它完美地工作.