If I check for outdated artifacts using:
composer outdated "drupal/*"
I can see Core needs updating:
drupal/core 9.2.3 9.2.4
drupal/core-composer-scaffold 9.2.3 9.2.4
drupal/core-dev 9.1.5 9.2.4
drupal/core-recommended 9.2.3 9.2.4
...
However, when I try to update:
composer update drupal/core-recommended --with-dependencies
I get the following messages:
Dependency "drupal/core" is also a root requirement, but is not explicitly allowed. Ignoring.
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Package container-interop/container-interop is abandoned, you should avoid using it. Use psr/container instead.
Package doctrine/reflection is abandoned, you should avoid using it. Use roave/better-reflection instead.
Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
Package rector/rector-prefixed is abandoned, you should avoid using it. Use rector/rector instead.
Writing lock file
Generating autoload files
composer/package-versions-deprecated: Generating version class...
composer/package-versions-deprecated: ...done generating version class
This site was original built in Drupal 8, but has been upgraded to Drupal 9.
Any suggestions on how I might fix this issue?
My composer.json file is as follows:
{
"name": "drupal/recommended-project",
"description": "Project template for Drupal 8 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": "^1.2",
"drupal/address": "^1.9",
"drupal/advagg": "4.x-dev@dev",
"drupal/asset_injector": "2.x-dev",
"drupal/charts": "^5.0@alpha",
"drupal/coffee": "1.x-dev",
"drupal/composer_deploy": "^1.6",
"drupal/config_views": "^2.0",
"drupal/core": "9.2.3 as 8.9.0",
"drupal/core-composer-scaffold": "^9.1.5",
"drupal/core-project-message": "^9.1.5",
"drupal/core-recommended": "^9.1.5",
"drupal/devel_entity_updates": "^3.0",
"drupal/domain": "1.x-dev",
"drupal/domain_site_settings": "1.x-dev",
"drupal/dropzonejs": "^2.5",
"drupal/drupalmoduleupgrader": "^1.7",
"drupal/dynamic_asset": "1.x-dev",
"drupal/email_registration": "^1.1",
"drupal/exclude_node_title": "1.x-dev@dev",
"drupal/feeds": "3.x-dev",
"drupal/feeds_tamper": "^2.0",
"drupal/field_css": "^2.0@RC",
"drupal/field_formatter_class": "^1.5",
"drupal/filefield_paths": "1.x-dev",
"drupal/formblock": "^2.0@beta",
"drupal/geocoder": "^3.17",
"drupal/geophp": "^1.0",
"drupal/group": "1.x-dev@dev",
"drupal/gtranslate": "^1.13",
"drupal/image_effects": "^3.1",
"drupal/jquery_ui": "1.x-dev",
"drupal/jquery_ui_sortable": "1.x-dev",
"drupal/leaflet": "^2.1",
"drupal/libraries": "^3.0@beta",
"drupal/masquerade": "2.x-dev@dev",
"drupal/media_directories": "^2.0",
"drupal/media_library_form_element": "1.x-dev",
"drupal/media_migration": "1.x-dev@dev",
"drupal/menu_twig": "^1.4",
"drupal/migrate_plus": "^5.1",
"drupal/migrate_process_inline_images": "^1.0",
"drupal/migrate_source_csv": "3.x-dev@dev",
"drupal/migrate_tools": "5.x-dev@dev",
"drupal/ng_lightbox": "^1.0@beta",
"drupal/office_hours": "^1.3",
"drupal/optimizedb": "1.x-dev@dev",
"drupal/paragraphs": "^1.12",
"drupal/pathauto": "^1.8",
"drupal/php": "^1.1",
"drupal/prepopulate": "^2.3",
"drupal/quiz": "6.x-dev@dev",
"drupal/recaptcha": "^3.0",
"drupal/redirect": "^1.6",
"drupal/search404": "^2.0",
"drupal/shortcode": "2.0.x-dev@dev",
"drupal/sitemap": "^2.0@beta",
"drupal/theme_switcher": "^1.1",
"drupal/ultimate_cron": "^2.0@alpha",
"drupal/upgrade_rector": "1.x-dev@dev",
"drupal/video": "^1.5@alpha",
"drupal/video_embed_field": "2.x-dev@dev",
"drupal/views_data_export": "1.x-dev@dev",
"drupal/views_slideshow": "^4.8",
"drupal/webform": "^6.0@alpha",
"drupal/webform_migrate": "1.x-dev@dev",
"drupal/weight": "^3.2",
"drupal/xhprof": "^1.0@beta",
"drush/drush": "^10.4",
"geocoder-php/google-maps-provider": "^4.6",
"google/apiclient": "^2.0",
"phpstan/phpstan": "^0.12.81",
"webmozart/assert": "^1.10"
},
"conflict": {
"drupal/drupal": "*"
},
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"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/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": {
"drupal/core-dev": "^9.1.5",
"kint-php/kint": "^3.3",
"mglaman/drupal-check": "^1.1",
"phpunit/phpunit": "^8.4.1"
}
}
composer update drupal/core "drupal/core-*" --with-all-dependencies
. Does it help?