升级Symfony 2.0至2.1错误到加载Symfony软件包



我运行composer.phar安装时有这个错误:

[RuntimeException] 无法在http://packagist.org中加载软件包Symfony/Framework-Standard-Edition:[InfirartValueException]无法解析版本约束 ^2.4.8:无效版本字符串字符串" ^2.4.8"

我使用Composer 1.0.0-Alpha7,我正在升级我的Symfony Project 2.0至2.1

这是我的composer.json文件:

{" name":" Symfony/Framework-Standard-edition", "许可证":"麻省理工学院", "类型":"项目", "描述":" " Symfony Standard Edition " Distribution",

"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"
}

}

你有一个想法吗?

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

好吧,我发现我的问题:我只是删除了我的作曲家的"最小稳定性":" dev"

相关内容

  • 没有找到相关文章

最新更新