2017-07-06 72 views
0

當我嘗試安裝奏電子商務與composer.phar更新安裝奏鳴曲電子商務與composer.phar更新

錯誤[runtimeExeption]在http://packagist.org無法加載包 橙開源/橙色升壓自舉: [unexpectedValueException]無法分析版本約束 v4.0.0-alpha.3.1無效的版本字符串「v4.0.0-alpha.3.1」。

composer.json

{ 
"name": "symfony/framework-standard-edition", 
"license": "MIT", 
"type": "project", 
"description": "The \"Symfony Standard Edition\" distribution", 
"autoload": { 
    "psr-0": { 
     "": "src/" 
    } 
}, 
"require": { 
    "php": ">=5.3.3", 
    "symfony/symfony": "2.7.*", 
    "doctrine/orm": "~2.4,>=2.4.5", 
    "doctrine/doctrine-bundle": "1.5.*", 
    "twig/extensions": "1.2.*", 
    "symfony/assetic-bundle": "2.3.*", 
    "symfony/swiftmailer-bundle": "2.3.*", 
    "symfony/security": "@stable", 
    "symfony/monolog-bundle": "@stable", 
    "sensio/distribution-bundle": "4.0.*", 
    "sensio/framework-extra-bundle": "3.0.*", 
    "sensio/generator-bundle": "2.3.*", 
    "leafo/lessphp": "*", 
    "twitter/bootstrap": "*", 
    "friendsofsymfony/jsrouting-bundle": "@stable", 
    "friendsofsymfony/user-bundle": "@stable", 
    "incenteev/composer-parameter-handler": "~2.0", 
    "friendsofsymfony/comment-bundle":"@stable", 
    "sonata-project/core-bundle": "@stable", 
    "sonata-project/media-bundle": "2.3.3", 
    "sonata-project/admin-bundle": "@stable", 
    "sonata-project/doctrine-orm-admin-bundle": "@stable", 
    "knplabs/knp-paginator-bundle": "@stable",   
    "sonata-project/translation-bundle": "~1", 
    "a2lix/translation-form-bundle": "1.*@dev", 
    "a2lix/i18n-doctrine-bundle": "^0.1.0", 
    "jordillonch/crud-generator": "dev-master", 
    "knplabs/doctrine-behaviors": "@stable", 
    "doctrine/doctrine-fixtures-bundle": "@stable", 
    "sonata-project/user-bundle": "@stable", 
    "fp/jsformvalidator-bundle":"@stable", 
    "ensepar/html2pdf-bundle" : "@stable", 
    "sonata-project/ecommerce": "@stable", 
    "ibrows/newsletter-bundle": "*" 

}, 
"scripts": { 
    "post-install-cmd": [ 
     "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters", 
     "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap", 
     "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache", 
     "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets", 
     "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile" 
    ], 
    "post-update-cmd": [ 
     "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters", 
     "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap", 
     "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache", 
     "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets", 
     "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile" 
    ] 
}, 
"config": { 
    "bin-dir": "bin" 
}, 
"minimum-stability": "stable", 
"extra": { 
    "symfony-app-dir": "app", 
    "symfony-web-dir": "web", 
    "incenteev-parameters": { 
     "file": "app/config/parameters.yml" 
    }, 
    "branch-alias": { 
     "dev-master": "2.3-dev" 
    } 
} 

}

+0

你可以發佈你的composer.json文件嗎? – beterthanlife

+0

我在第一評論 –

回答

0

你composer.json文件似乎罰款 - 我能夠沒有任何問題與 「composer.phar更新」 來運行它。

嘗試使用「composer.phar self-update」更新作曲家,並使用「composer.phar clear-cache」清除緩存。

+0

加入了composer.json,非常感謝。 –