【问题标题】:Drupal8 composer league/csv and swiftmailer conflict or minimum-stabilityDrupal8 composer League/csv 和 swiftmailer 冲突或最低稳定性
【发布时间】:2016-07-21 08:04:59
【问题描述】:

我尝试在我的 drupal8 根文件夹中使用此命令:

~/web$ php ../composer.phar drupal-update -dev

在我的 composer.json 文件中,我有:

{
"name": "drupal/drupal",
"description": "Drupal is an open source content management platform powering millions of websites and applications.",
"type": "project",
"license": "GPL-2.0+",
"require": {
    "composer/installers": "^1.0.21",
    "wikimedia/composer-merge-plugin": "~1.3",
    "league/csv": "^8.1@dev",
    "swiftmailer/swiftmailer": "^5.4@dev"
},
"replace": {
    "drupal/core": "~8.1",
    "drupal/csv_serialization": "8.*",
    "drupal/pathauto": "8.*",
    "drupal/swiftmailer": "8.*"
},
"minimum-stability": "dev",
"prefer-stable": false,
"config": {
    "preferred-install": "dist",
    "autoloader-suffix": "Drupal8"
},
...

当我尝试这个命令时,我遇到了这个错误:

Problem 1
- The requested package league/csv ^7.1 is satisfiable by league/csv[7.1.0, 7.1.1, 7.1.2, 7.2.0] but these conflict with your requirements or minimum-stability.
Problem 2
- The requested package swiftmailer/swiftmailer 5.2.*@stable is satisfiable by swiftmailer/swiftmailer[v5.2.0, v5.2.1, v5.2.2] but these conflict with your requirements or minimum-stability.

在这里和那里找到的许多页面上,他们说将我的最低稳定性设置为“开发”,但没有任何改变。

当我尝试更新、删除或其他任何操作时...出现此错误。

如果您知道我做错了什么,我将非常感谢您为我付出的时间。

提前,非常感谢!

附:原谅我糟糕的英语

【问题讨论】:

    标签: configuration composer-php updates export-to-csv drupal-8


    【解决方案1】:

    由于 composer 处理依赖项的方式,您需要编辑 composer.json 文件并降级您的两个依赖项才能使其正常工作。

    例子:

    {
    "name": "drupal/drupal",
    "description": "Drupal is an open source content management platform powering millions of websites and applications.",
    "type": "project",
    "license": "GPL-2.0+",
    "require": {
        "composer/installers": "^1.0.21",
        "wikimedia/composer-merge-plugin": "~1.3",
        "league/csv": "^7.2",
        "swiftmailer/swiftmailer": "^5.2"
    },
    "replace": {
        "drupal/core": "~8.1",
        "drupal/csv_serialization": "8.*",
        "drupal/pathauto": "8.*",
        "drupal/swiftmailer": "8.*"
    },
    "minimum-stability": "dev",
    "prefer-stable": false,
    "config": {
        "preferred-install": "dist",
        "autoloader-suffix": "Drupal8"
    },
    

    【讨论】:

      猜你喜欢
      • 2016-02-29
      • 2017-12-14
      • 2018-01-31
      • 2017-03-20
      • 2020-12-03
      • 2017-04-30
      • 2016-10-09
      • 2017-09-29
      • 2017-01-07
      相关资源
      最近更新 更多