Problem 1
    - Root composer.json requires drupal/social_auth_microsoft ^4.0 -> satisfiable by drupal/social_auth_microsoft[4.0.0-beta1, 4.0.0, 4.0.x-dev].
    - drupal/social_auth_microsoft[4.0.0-beta1, ..., 4.0.x-dev] require drupal/social_auth ^4.0 -> found drupal/social_auth[dev-4.0.x, dev-4.1.x, 4.0.0-beta1, ..., 4.1.x-dev (alias of dev-4.1.x)] but it conflicts with your root composer.json require (^3.0).

(from composer.json)
"drupal/social_auth_microsoft": "^4.0",

...so why " it conflicts with your root composer.json require (^3.0)" ??? Where is that "3.0" coming from ? Is it pulling it from the database or something?

Comments

jaypan’s picture

No, it does not pull from the database. What does your composer.json look like?

Contact me to contract me for D7 -> D10/11 migrations.

riorick17’s picture

{
    "name": "drupal/recommended-project",
    "description": "Project template for Drupal 9 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"
        },
        {
            "type": "package",
            "package": {
                "name": "d3/d3",
                "version": "v3.5.17",
                "type": "drupal-library",
                "dist": {
                    "url": "https://github.com/d3/d3/archive/v3.5.17.zip",
                    "type": "zip"
                }
            }
        },
        {
            "type": "package",
            "package": {
                "name": "components/highlightjs",
                "version": "9.7.0",
                "type": "drupal-library",
                "dist": {
                    "url": "https://github.com/components/highlightjs/archive/9.7.0.zip",
                    "type": "zip"
                }
            }
        }
    ],
    "require": {
        "components/highlightjs": "9.7.*",
        "composer/installers": "^1.9",
        "d3/d3": "3.5.*",
        "drupal/admin_toolbar": "^3.0",
        "drupal/bootstrap": "^3.23",
        "drupal/bootstrap_layout_builder": "^2.0",
        "drupal/bootstrap_layouts": "^5.2",
        "drupal/ckeditor_youtube": "^1.3",
        "drupal/codesnippet": "^1.7",
        "drupal/color": "^1.0",
        "drupal/core": "10.2.1",
        "drupal/core-composer-scaffold": "^10",
        "drupal/core-project-message": "^10",
        "drupal/ctools": "^3.4",
        "drupal/ds": "^3.9",
        "drupal/editor_advanced_link": "^2.2",
        "drupal/editor_file": "1.x-dev@dev",
        "drupal/entity_embed": "^1.1",
        "drupal/entity_usage": "^2.0@beta",
        "drupal/fb_likebox": "2.x-dev@dev",
        "drupal/fontyourface": "^3.5",
        "drupal/iframe": "^2.10",
        "drupal/imagemagick": "^3.1",
        "drupal/inline_entity_form": "^1.0@RC",
        "drupal/jquery_ui": "^1.6",
        "drupal/jquery_ui_draggable": "^2.0",
        "drupal/jquery_ui_droppable": "^2.0",
        "drupal/layout_builder_blocks": "^1.0",
        "drupal/mailsystem": "^4.4",
        "drupal/media_entity_browser": "^2.0@alpha",
        "drupal/media_entity_twitter": "^2.4",
        "drupal/metatag": "^1.15",
        "drupal/page_manager": "^4.0@beta",
        "drupal/paragraphs": "^1.12",
        "drupal/pathauto": "^1.8",
        "drupal/quickedit": "^1.0",
        "drupal/rdf": "^2.0",
        "drupal/schema_metatag": "^2.1",
        "drupal/search_api": "^1.18",
        "drupal/simple_gmap": "^3.0",
        "drupal/social_auth": "^3.0",
        "drupal/social_auth_facebook": "^3.0@RC",
        "drupal/social_auth_google": "^3.0@RC",
        "drupal/social_auth_linkedin": "^3.0",
        "drupal/svg_image": "^1.14",
        "drupal/token": "^1.9",
        "drupal/views_bootstrap": "^3.5",
        "drush/drush": "^12",
        "fzaninotto/faker": "^1.9",
        "kktsvetkov/krumo": "^0.4.4",
        "wikimedia/composer-merge-plugin": "^2.0"
    },
    "conflict": {
        "drupal/drupal": "*"
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
    "config": {
        "sort-packages": true,
        "allow-plugins": {
            "composer/installers": true,
            "drupal/core-composer-scaffold": true,
            "drupal/core-project-message": true,
            "wikimedia/composer-merge-plugin": true
        }
    },
    "extra": {
        "drupal-scaffold": {
            "locations": {
                "web-root": "web/"
            }
        },
        "merge-plugin": {
            "include": [
                "web/modules/contrib/webform/composer.libraries.json"
            ]
        },
        "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": [
                "<bg=blue;fg=white>                                                         </>",
                "<bg=blue;fg=white>  Congratulations, you’ve installed the Drupal codebase  </>",
                "<bg=blue;fg=white>  from the drupal/recommended-project template!          </>",
                "<bg=blue;fg=white>                                                         </>",
                "",
                "<bg=yellow;fg=black>Next steps</>:",
                "  * Install the site: https://www.drupal.org/docs/8/install",
                "  * 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"
            ]
        }
    },
    "require-dev": {
        "kint-php/kint": "^3.3"
    }
}
nofue’s picture

Your composer has this line

        "drupal/social_auth": "^3.0",

Maybe you should either install upgrade_status to get a good overview of issues when you're not used to deal with composer, or you try to bring the existing 9.5.x installation modules to the latest version(s) by running composer update -W --dry-run

If the --dry-run doesn't complain about anything, omit it and run composer update -W

If drupal/social_auth doesn't get updated, you can require its update during the updating process with
composer require "drupal/social_auth:^4.0" --no-update
Once you issue composer update, all the updates which got postponed by --no-update will be considered by composer. 
If you haven't yet, find the page "Upgrading Drupal 9 to 10" on drupal.org and follow the procedure to the comma.

Norbert

-- form follows function

jaypan’s picture

The error message you are seeing is saying that drupal/social_auth_microsoft depends on drupal/social_auth:^4, however composer.json is locked to social_auth_microsoft version 3, which is why it is failing:

        "drupal/social_auth": "^3.0",

You'll need to update that module first to be able to install version 4 of the drupal/social_auth_microsoft module.

Contact me to contract me for D7 -> D10/11 migrations.

riorick17’s picture

(from composer.json)
"drupal/social_auth_microsoft": "^4.0",

As you can see from my initial posting, I edited composer.json to include the 4.0 version. I ended up removing the module completely so my current composer.json doesn't include that module at all.

jaypan’s picture

Yes, but your problem is that a module it depends on, the social_auth module, was pegged to version 3.0 in your composer.json, while the socail_auth_microsoft module requires version 4 or above. This conflict was preventing your upgrade.

Contact me to contract me for D7 -> D10/11 migrations.

jasejake394’s picture

The conflict happens because your composer.json requires drupal/social_auth_microsoft at ^4.0, which depends on drupal/social_auth ^4.0, but another module is pulling in drupal/social_auth ^3.0. Run composer why drupal/social_auth to find the source of the 3.0 requirement. Update dependencies to align with ^4.0. Similar to when packages arrive at the linehaul office in the UK—it’s all about proper routing!