Symfony作曲家更新“冻结”更新依赖项

马克西姆

使用Symfony2,将nelmio / api-doc-bundle添加到我的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.4",
    "doctrine/orm": "~2.2,>=2.2.3",
    "doctrine/doctrine-bundle": "~1.2",
    "twig/extensions": "~1.0",
    "symfony/assetic-bundle": "~2.3",
    "symfony/swiftmailer-bundle": "~2.3",
    "symfony/monolog-bundle": "~2.4",
    "sensio/distribution-bundle": "~2.3",
    "sensio/framework-extra-bundle": "~3.0",
    "sensio/generator-bundle": "~2.3",
    "incenteev/composer-parameter-handler": "~2.0",
    "jms/serializer-bundle" : "0.13.0",
    "friendsofsymfony/rest-bundle": "1.2.2",
    "friendsofsymfony/user-bundle": "~2.0@dev",
    "coresphere/console-bundle": "dev-master",
    "nelmio/api-doc-bundle": "2.4.5"
},
"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"
},
"extra": {
    "symfony-app-dir": "app",
    "symfony-web-dir": "web",
    "incenteev-parameters": {
        "file": "app/config/parameters.yml"
    },
    "branch-alias": {
        "dev-master": "2.4-dev"
    }
}

}

但是,当我运行composer update时,脚本会阻止更新依赖项。详细地说,这是冻结的行:

Reading /root/.composer/cache/repo/https---packagist.org/provider-jms$cg.json from cache

在添加nelmio / api-doc-bundle之前还不错,但是我在另一个捆绑包中也遇到了同样的问题(最终我重置了项目)。


编辑02/07:当我执行作曲家安装(使用--prefer-dist或--prefer-source)时,出现以下错误:

Your requirements could not be resolved to an installable set of packages.



Problem 1
    - The requested package friendsofsymfony/rest-bundle could not be found in any version, there may be a typo in the package name.
  Problem 2
    - The requested package jms/serializer-bundle could not be found in any version, there may be a typo in the package name.
  Problem 3
    - Installation request for symfony/framework-standard-edition 2.4.x-dev -> satisfiable by symfony/framework-standard-edition[2.4.x-dev].
    - symfony/framework-standard-edition 2.4.x-dev requires jms/serializer-bundle 0.13.0 -> no matching package found.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.

编辑2:我将Symfony降级为〜2.3,并且当我进行更新时,冻结的行已更改

Reading /root/.composer/cache/repo/https---packagist.org/provider-dflydev$markdown.json from cache
guy_fawkes

它可以正常工作,请尝试向作曲家添加“最小稳定度”:“ dev”。谷歌组从法尔错误

{ "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.4",
    "doctrine/orm": "~2.2,>=2.2.3",
    "doctrine/doctrine-bundle": "~1.2",
    "twig/extensions": "~1.0",
    "symfony/assetic-bundle": "~2.3",
    "symfony/swiftmailer-bundle": "~2.3",
    "symfony/monolog-bundle": "~2.4",
    "sensio/distribution-bundle": "~2.3",
    "sensio/framework-extra-bundle": "~3.0",
    "sensio/generator-bundle": "~2.3",
    "incenteev/composer-parameter-handler": "~2.0",
    "jms/serializer-bundle" : "0.13.0",
    "friendsofsymfony/rest-bundle": "1.2.2",
    "friendsofsymfony/user-bundle": "~2.0@dev",
    "coresphere/console-bundle": "dev-master",
    "nelmio/api-doc-bundle": "2.4.5" }, "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": "dev", "extra": {
    "symfony-app-dir": "app",
    "symfony-web-dir": "web",
    "incenteev-parameters": {
        "file": "app/config/parameters.yml"
    },
    "branch-alias": {
        "dev-master": "2.4-dev"
    } } }

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

作曲家更新无法更新laravel依赖项

来自分类Dev

我如何只更新一个作曲家依赖项?

来自分类Dev

作曲家更新与作曲家更新 --dev

来自分类Dev

作曲家更新麻烦

来自分类Dev

作曲家更新Laravel

来自分类Dev

symfony作曲家更新twbs文件在哪里?

来自分类Dev

作曲家挂在安装依赖项

来自分类Dev

作曲家没有安装依赖项的依赖项

来自分类常见问题

作曲家更新内存限制

来自分类Dev

无法启动作曲家更新

来自分类Dev

作曲家更新“进程被杀死”

来自分类Dev

作曲家将不再更新

来自分类Dev

作曲家(安装/更新)总是失败

来自分类Dev

禁用作曲家进行更新?

来自分类Dev

Laravel:作曲家更新错误

来自分类Dev

如何还原作曲家的更新?

来自分类Dev

Sylius旧作曲家更新

来自分类Dev

作曲家自我更新TransportException

来自分类Dev

作曲家的安装/更新问题

来自分类Dev

Laravel Workbench作曲家更新

来自分类Dev

更新时的作曲家问题

来自分类Dev

作曲家更新后出错

来自分类Dev

更新时的作曲家错误 [UnexpectedValueException]

来自分类Dev

在作曲家laravel上安装依赖项(doctrine / dbal)

来自分类Dev

作曲家:安装了额外的(不是必需的)依赖项

来自分类Dev

Laravel作曲家的安装挂在“安装依赖项”上

来自分类Dev

作曲家:安装了额外的(不是必需的)依赖项

来自分类Dev

作曲家| laravel 5-更新依赖关系,但框架本身

来自分类Dev

作曲家更新后更新了哪些文件