无法运行程序" Composer"

时间:2017-02-11 22:51:15

标签: composer-php symfony

我正在使用Symfony 3.我在我的项目中使用了FOSCommentBundle,它使用了Symfony 3不支持的assetic-bundle。我尝试运行命令composer require symfony/assetic-bundle 但我一直在说:

  

无法运行程序(在目录" C:\ wamp \ www \ myProject")" composer" CreateProcess error = 2"。

Ps:我是初学者

{
"name": "symfony/symfony",
"type": "library",
"description": "The Symfony PHP framework",
"keywords": ["framework"],
"homepage": "https://symfony.com",
"license": "MIT",
"authors": [
    {
        "name": "Fabien Potencier",
        "email": "fabien@symfony.com"
    },
    {
        "name": "Symfony Community",
        "homepage": "https://symfony.com/contributors"
    }
],
"require": {
    "php": ">=5.5.9",
    "doctrine/common": "~2.4",
    "twig/twig": "~1.28|~2.0",
    "psr/cache": "~1.0",
    "psr/log": "~1.0",
    "symfony/polyfill-intl-icu": "~1.0",
    "symfony/polyfill-mbstring": "~1.0",
    "symfony/polyfill-php56": "~1.0",
    "symfony/polyfill-php70": "~1.0",
    "symfony/polyfill-util": "~1.0",
    "symfony/assetic-bundle": "~2"
},
"replace": {
    "symfony/asset": "self.version",
    "symfony/browser-kit": "self.version",
    "symfony/cache": "self.version",
    "symfony/class-loader": "self.version",
    "symfony/config": "self.version",
    "symfony/console": "self.version",
    "symfony/css-selector": "self.version",
    "symfony/dependency-injection": "self.version",
    "symfony/debug": "self.version",
    "symfony/debug-bundle": "self.version",
    "symfony/doctrine-bridge": "self.version",
    "symfony/dom-crawler": "self.version",
    "symfony/event-dispatcher": "self.version",
    "symfony/expression-language": "self.version",
    "symfony/filesystem": "self.version",
    "symfony/finder": "self.version",
    "symfony/form": "self.version",
    "symfony/framework-bundle": "self.version",
    "symfony/http-foundation": "self.version",
    "symfony/http-kernel": "self.version",
    "symfony/inflector": "self.version",
    "symfony/intl": "self.version",
    "symfony/ldap": "self.version",
    "symfony/monolog-bridge": "self.version",
    "symfony/options-resolver": "self.version",
    "symfony/process": "self.version",
    "symfony/property-access": "self.version",
    "symfony/property-info": "self.version",
    "symfony/proxy-manager-bridge": "self.version",
    "symfony/routing": "self.version",
    "symfony/security": "self.version",
    "symfony/security-core": "self.version",
    "symfony/security-csrf": "self.version",
    "symfony/security-guard": "self.version",
    "symfony/security-http": "self.version",
    "symfony/security-bundle": "self.version",
    "symfony/serializer": "self.version",
    "symfony/stopwatch": "self.version",
    "symfony/templating": "self.version",
    "symfony/translation": "self.version",
    "symfony/twig-bridge": "self.version",
    "symfony/twig-bundle": "self.version",
    "symfony/validator": "self.version",
    "symfony/var-dumper": "self.version",
    "symfony/web-profiler-bundle": "self.version",
    "symfony/yaml": "self.version"
},
"require-dev": {
    "cache/integration-tests": "dev-master",
    "doctrine/cache": "~1.6",
    "doctrine/data-fixtures": "1.0.*",
    "doctrine/dbal": "~2.4",
    "doctrine/orm": "~2.4,>=2.4.5",
    "doctrine/doctrine-bundle": "~1.4",
    "monolog/monolog": "~1.11",
    "ocramius/proxy-manager": "~0.4|~1.0|~2.0",
    "predis/predis": "~1.0",
    "symfony/phpunit-bridge": "~3.2",
    "egulias/email-validator": "~1.2,>=1.2.1",
    "symfony/polyfill-apcu": "~1.1",
    "symfony/security-acl": "~2.8|~3.0",
    "phpdocumentor/reflection-docblock": "^3.0"
},
"conflict": {
    "phpdocumentor/reflection-docblock": "<3.0",
    "phpdocumentor/type-resolver": "<0.2.0"
},
"provide": {
    "psr/cache-implementation": "1.0"
},
"autoload": {
    "psr-4": {
        "Symfony\\Bridge\\Doctrine\\": "src/Symfony/Bridge/Doctrine/",
        "Symfony\\Bridge\\Monolog\\": "src/Symfony/Bridge/Monolog/",
        "Symfony\\Bridge\\ProxyManager\\": "src/Symfony/Bridge/ProxyManager/",
        "Symfony\\Bridge\\Swiftmailer\\": "src/Symfony/Bridge/Swiftmailer/",
        "Symfony\\Bridge\\Twig\\": "src/Symfony/Bridge/Twig/",
        "Symfony\\Bundle\\": "src/Symfony/Bundle/",
        "Symfony\\Component\\": "src/Symfony/Component/"
    },
    "classmap": [
        "src/Symfony/Component/Intl/Resources/stubs"
    ],
    "exclude-from-classmap": [
        "**/Tests/"
    ]
},
"minimum-stability": "dev",
"extra": {
    "branch-alias": {
        "dev-master": "3.1-dev"
    }
}

当我运行composer require symfony/assetic-bundle -vvv时,这就是我得到的:

  

无法运行程序&#34;作曲家&#34; (在目录&#34; C:\ wamp \ www \ myProject&#34;):CreateProcess error = 2,   无法找到指定的文件

0 个答案:

没有答案