2015-05-04 80 views
-2

当我运行composer.phar安装我有这样的错误:symfony的2.0升级到2.1误差加载的symfony包

[RuntimeException的] 在http://packagist.org无法加载包的symfony /框架标版: UnexpectedValueException]无法解析版本约束^ 2.4.8:无效的版本字符串 “^ 2.4.8”

我用作曲家1.0.0-alpha7,我升级我的symfony项目2.0至2.1

ŧ他是我的composer.json文件:

{ “名”: “symfony中/框架标准版”, “许可证”: “麻省理工学院”, “类型”: “计划”, “的说明“道: ”\“ 的Symfony标准版\” 分配”,

"autoload": { 
    "psr-0": { "": "src/" } 
}, 

"require": { 
    "php": ">=5.3.3", 
    "symfony/symfony": "2.1.*" 
}, 
"scripts": { 
    "post-install-cmd": [ 
     "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": [ 
     "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap", 
     "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache", 
     "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets", 
     "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile" 
    ] 
}, 
"minimum-stability": "dev", 
"extra": { 
    "symfony-app-dir": "app", 
    "symfony-web-dir": "web", 
    "symfony-assets-install":"symlink" 
} 

}

你有一个想法?

+3

“S'il VOUS编海报VOTRE问题EN英语留言Merci!”。 [<==](https://translate.google.com/m/translate)“*请用英文发表您的问题!谢谢。*” –

+1

好的我翻译了我的问题 – clunaje

+0

好的我发现一个问题:我删除了“最小稳定性“:我的composer.json的”dev“ – clunaje

回答

0

好吧,我发现我的问题:我只是删除“最低稳定”:我composer.json的“开发”

4

您必须运行composer selfupdate,因为您使用的Composer版本尚不了解版本约束中的^运算符。