drupal cms do not install via composer

Created on 15 January 2025, 3 months ago

php 8.3/php 8.4

root@***:/var/www/***_usr/data/www/***.com# composer require drupal/drupal_cms_starter:~1.0.0
./composer.json has been created
Running composer update drupal/drupal_cms_starter
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Root composer.json requires drupal/drupal_cms_starter ~1.0.0 -> satisfiable by drupal/drupal_cms_starter[1.0.0].
- drupal/drupal_cms_starter 1.0.0 requires drupal/automatic_updates ^3.1.7 -> could not be found in any version, there may be a typo in the package name.

Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see for more details.
- It's a private package and you forgot to add a custom repository to find it

Read for further common problems.

Installation failed, deleting ./composer.json.

πŸ› Bug report
Status

Active

Component

General

Created by

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

Comments & Activities

  • Issue created by @volanar
  • πŸ‡¬πŸ‡§United Kingdom dunx

    I had a similar issue installing a patch to project_browser yesterday. Full steps at https://www.drupal.org/project/project_browser/issues/3498901#comment-15... πŸ› Recipe description appears twice in modal Active

    Error was

    Your requirements could not be resolved to an installable set of packages.
    
      Problem 1
        - Root composer.json requires drupal/drupal_cms_starter 1.x-dev -> satisfiable by drupal/drupal_cms_starter[1.x-dev].
        - drupal/drupal_cms_starter 1.x-dev requires drupal/project_browser ^2-alpha7 -> found drupal/project_browser[2.0.0-alpha7, 2.0.x-dev] but it conflicts with your root composer.json require (3498901-recipe-description-appears-dev).
  • πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts

    I'm guessing you're having two different problems, both arising from the fact that you likely have made changes to your composer.json files that would not normally be the case in a regular Drupal project (or a regular Drupal CMS project, for that matter). The good news is it's easily fixed.

    First, @volanar, your problem probably arises from not having the packages.drupal.org repository defined in your composer.json. Without that, you won't be able to download any Drupal modules at all. Here's documentation about that: https://www.drupal.org/docs/develop/using-composer/using-packagesdrupalorg β†’ . Note that Drupal CMS does configure this repository by default, if you start with composer create-project drupal/cms:1.0.x-dev, or a zip file of that (1.0.0 will launch later today), which is the correct way to start a Drupal CMS project.

    And @dunx, your problem is coming from you most likely having tested some merge request branch of Project Browser, so of course nothing that depends on a different tag of it will be able to come in, because Composer will find a conflict. You probably have something like "require": {"drupal/project_browser": "3498901-recipe-description-appears-dev"} in your composer.json somewhere. Remove that, along with anything in the repositories section that points to the Project Browser merge request fork, and try it again.

    Tentatively closing because this is unlikely to be a Drupal CMS flaw, just misconfigured existing composer.json files. Feel free to reopen if you try my suggestions and continue to have problems.

  • root@***:/var/www/***usr/data/www/***.com# composer create-project drupal/cms:1.0.x-dev -s dev
    Creating a "drupal/cms:1.0.x-dev" project at "./cms"
    Installing drupal/cms (1.0.x-dev d85a2561b95694e43ed5c29d25d8b238d3cbe318)
    - Installing drupal/cms (1.0.x-dev d85a256): Extracting archive
    Created project in /var/www/portal_neovk_usr/data/www/portal.neovk.com/cms
    Loading composer repositories with package information
    Updating dependencies
    Your requirements could not be resolved to an installable set of packages.

    Problem 1
    - Root composer.json requires drupal/drupal_cms_ai 1.0.x-dev -> satisfiable by drupal/drupal_cms_ai[1.0.x-dev].
    - drupal/drupal_cms_ai 1.0.x-dev requires drupal/drupal_cms_privacy_basic 1.0.x-dev -> found drupal/drupal_cms_privacy_basic[1.0.x-dev] but it does not match your minimum-stability.
    Problem 2
    - Root composer.json requires drupal/drupal_cms_analytics 1.0.x-dev -> satisfiable by drupal/drupal_cms_analytics[1.0.x-dev].
    - drupal/drupal_cms_analytics 1.0.x-dev requires drupal/drupal_cms_google_analytics 1.0.x-dev -> found drupal/drupal_cms_google_analytics[1.0.x-dev] but it does not match your minimum-stability.
    Problem 3
    - Root composer.json requires drupal/drupal_cms_events 1.0.x-dev -> satisfiable by drupal/drupal_cms_events[1.0.x-dev].
    - drupal/drupal_cms_events 1.0.x-dev requires drupal/drupal_cms_privacy_basic 1.0.x-dev -> found drupal/drupal_cms_privacy_basic[1.0.x-dev] but it does not match your minimum-stability.
    Problem 4
    - Root composer.json requires drupal/drupal_cms_forms 1.0.x-dev -> satisfiable by drupal/drupal_cms_forms[1.0.x-dev].
    - drupal/drupal_cms_forms 1.0.x-dev requires drupal/drupal_cms_anti_spam 1.0.x-dev -> found drupal/drupal_cms_anti_spam[1.0.x-dev] but it does not match your minimum-stability.
    Problem 5
    - Root composer.json requires drupal/drupal_cms_page 1.0.x-dev -> satisfiable by drupal/drupal_cms_page[1.0.x-dev].
    - drupal/drupal_cms_page 1.0.x-dev requires drupal/drupal_cms_content_type_base 1.0.x-dev -> found drupal/drupal_cms_content_type_base[1.0.x-dev] but it does not match your minimum-stability.
    Problem 6
    - Root composer.json requires drupal/drupal_cms_person 1.0.x-dev -> satisfiable by drupal/drupal_cms_person[1.0.x-dev].
    - drupal/drupal_cms_person 1.0.x-dev requires drupal/drupal_cms_content_type_base 1.0.x-dev -> found drupal/drupal_cms_content_type_base[1.0.x-dev] but it does not match your minimum-stability.
    Problem 7
    - Root composer.json requires drupal/drupal_cms_starter 1.0.x-dev -> satisfiable by drupal/drupal_cms_starter[1.0.x-dev].
    - drupal/drupal_cms_starter 1.0.x-dev requires drupal/drupal_cms_admin_ui 1.0.x-dev -> found drupal/drupal_cms_admin_ui[1.0.x-dev] but it does not match your minimum-stability.
    Problem 8
    - Root composer.json requires drupal/drupal_cms_project 1.0.x-dev -> satisfiable by drupal/drupal_cms_project[1.0.x-dev].
    - drupal/drupal_cms_page 1.0.x-dev requires drupal/drupal_cms_content_type_base 1.0.x-dev -> found drupal/drupal_cms_content_type_base[1.0.x-dev] but it does not match your minimum-stability.
    - drupal/drupal_cms_project 1.0.x-dev requires drupal/drupal_cms_page 1.0.x-dev -> satisfiable by drupal/drupal_cms_page[1.0.x-dev].

    root@***:/var/www/***_usr/data/www/***.com#

Production build 0.71.5 2024