Composer error trying to install any theme or module

Created on 19 January 2025, 6 months ago

Problem/Motivation

When I try to install any module or theme I get a error like the following:

$ composer require 'drupal/bootstrap:^5.0'
./composer.json has been created
Running composer update drupal/bootstrap
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/bootstrap, it 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.

This was when installing the Bootstrap 5 theme but the same error occurs no matter what I try to install using composer.

I am using a fresh install of Drupal 10.4.1

Steps to reproduce

Simply entering the command to install a module or theme

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ’¬ Support request
Status

Active

Version

5.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States buddyfinton

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

Comments & Activities

Production build 0.71.5 2024