composer installation fails

Created on 17 August 2023, over 1 year ago

Problem/Motivation

Hi, when i try to install with

composer require 'drupal/webform_xlsx_export:^1.2'

i get the next error:

Info from https://repo.packagist.org: #StandWithUkraine
./composer.json has been updated
Running composer update drupal/webform_xlsx_export
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1
- drupal/webform[5.9.0, ..., 5.13.0] require drupal/core ^8.7.7 || ^9 -> found drupal/core[8.7.7, ..., 8.9.20, 9.0.0, ..., 9.5.10] but the package is fixed to 10.1.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- drupal/webform[5.0.0, ..., 5.15.0] require drupal/core ^8 -> found drupal/core[8.0.0, ..., 8.9.20] but the package is fixed to 10.1.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- drupal/webform[5.16.0, ..., 5.31.0] require drupal/core ^8.8 -> found drupal/core[8.8.0, ..., 8.9.20] but the package is fixed to 10.1.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- drupal/webform[6.0.0, ..., 6.1.4] require drupal/core ^8.8 || ^9 -> found drupal/core[8.8.0, ..., 8.9.20, 9.0.0, ..., 9.5.10] but the package is fixed to 10.1.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- drupal/webform 6.1.5 requires drupal/core ^9.3 -> found drupal/core[9.3.0, ..., 9.5.10] but the package is fixed to 10.1.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- drupal/webform_xlsx_export 1.2.0 requires drupal/webform * -> satisfiable by drupal/webform[5.0.0, ..., 5.31.0, 6.0.0, ..., 6.1.5].
- Root composer.json requires drupal/webform_xlsx_export ^1.2 -> satisfiable by drupal/webform_xlsx_export[1.2.0].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

any help is appreciated, many thanks.

🐛 Bug report
Status

Active

Version

1.2

Component

Code

Created by

🇪🇸Spain Cangurin limpiezas Zaragoza

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Cangurin limpiezas
  • Status changed to Postponed: needs info over 1 year ago
  • 🇫🇷France prudloff Lille

    Can you please copy the content of your composer.json file?

  • Status changed to Active over 1 year ago
  • 🇪🇸Spain Cangurin limpiezas Zaragoza

    cat composer.json
    {
    "name": "drupal/recommended-project",
    "description": "Project template for Drupal projects with a relocated document root",
    "type": "project",
    "license": "GPL-2.0-or-later",
    "homepage": " https://www.drupal.org/project/drupal ",
    "support": {
    "docs": " https://www.drupal.org/docs/user_guide/en/index.html ",
    "chat": " https://www.drupal.org/node/314178 "
    },
    "repositories": [
    {
    "type": "composer",
    "url": "https://packages.drupal.org/8"
    }
    ],
    "require": {
    "composer/installers": "^2.0",
    "drupal/core-composer-scaffold": "^10.1",
    "drupal/core-project-message": "^10.1",
    "drupal/core-recommended": "^10.1",
    "drupal/pdf": "^1.2"
    },
    "conflict": {
    "drupal/drupal": "*"
    },
    "minimum-stability": "stable",
    "prefer-stable": true,
    "config": {
    "allow-plugins": {
    "composer/installers": true,
    "drupal/core-composer-scaffold": true,
    "drupal/core-project-message": true,
    "phpstan/extension-installer": true,
    "dealerdirect/phpcodesniffer-composer-installer": true
    },
    "sort-packages": true
    },
    "extra": {
    "drupal-scaffold": {
    "locations": {
    "web-root": "web/"
    }
    },
    "installer-paths": {
    "web/core": [
    "type:drupal-core"
    ],
    "web/libraries/{$name}": [
    "type:drupal-library"
    ],
    "web/modules/contrib/{$name}": [
    "type:drupal-module"
    ],
    "web/profiles/contrib/{$name}": [
    "type:drupal-profile"
    ],
    "web/themes/contrib/{$name}": [
    "type:drupal-theme"
    ],
    "drush/Commands/contrib/{$name}": [
    "type:drupal-drush"
    ],
    "web/modules/custom/{$name}": [
    "type:drupal-custom-module"
    ],
    "web/profiles/custom/{$name}": [
    "type:drupal-custom-profile"
    ],
    "web/themes/custom/{$name}": [
    "type:drupal-custom-theme"
    ]
    },
    "drupal-core-project-message": {
    "include-keys": [
    "homepage",
    "support"
    ],
    "post-create-project-cmd-message": [
    " ",
    " Congratulations, you’ve installed the Drupal codebase ",
    " from the drupal/recommended-project template! ",
    " ",
    "",
    "Next steps:",
    " * Install the site: https://www.drupal.org/docs/installing-drupal ",
    " * Read the user guide: https://www.drupal.org/docs/user_guide/en/index.html ",
    " * Get support: https://www.drupal.org/support ",
    " * Get involved with the Drupal community:",
    " https://www.drupal.org/getting-involved ",
    " * Remove the plugin that prints this message:",
    " composer remove drupal/core-project-message"
    ]
    }
    }
    }

  • 🇪🇸Spain Cangurin limpiezas Zaragoza

    Drupal Version 10.1.1

  • 🇫🇷France prudloff Lille

    Your problem is that there is no stable version of webform that supports Drupal 10 and by default Composer does not install beta versions.
    You should try to run composer require 'drupal/webform:^6.2@beta' first, then require webform_xlsx_export.

  • Status changed to Postponed: needs info 3 months ago
  • 🇫🇷France prudloff Lille

    Is this still a problem for you?

Production build 0.71.5 2024