Drupal8作曲家联盟/ csv和swiftmailer冲突或最小稳定性

时间:2016-07-21 08:04:59

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

我尝试在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.

在这里和那里找到的许多页面上,他们说我的最小稳定性为“dev”,但没有任何变化。

当我尝试更新,删除或其他任何内容时......我有这个错误。

如果你知道我做错了什么,我将非常感谢你为我服用的时间。

事先,非常感谢你!

P.S。请原谅我可怕的英语

1 个答案:

答案 0 :(得分:0)

由于编写器处理依赖关系的方式,您需要编辑 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"
},