Problem/Motivation

While installing the package using the below composer command and unable to download drupal/feed packages.
composer require 'drupal/feeds:^3.0@beta'
Problem 1
- Root composer.json requires drupal/feeds, it could not be found in any version, there may be a typo in the package name.
Composer version 2.5.5

Steps to reproduce

In the project folder, run the composer require command and you will see the errors.
composer require 'drupal/feeds:^3.0@beta'
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Root composer.json requires drupal/feeds, 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, reverting ./composer.json and ./composer.lock to their original content.

Proposed resolution

The Drupal feeds module package and valid version are not available on packagist.org. It should be available and it can be downloaded via Composer.

Comments

SenthilMohith created an issue. See original summary.

senthilmohith’s picture

Title: Unable to install package via composer and could not found any version » Unable to install drupal/feeds package via composer and could not found any version
megachriz’s picture

Category: Bug report » Support request
Status: Active » Fixed

In order for the Feeds package to be found, you need to have something like the following in your composer.json:

"repositories": {
    "drupal": {
        "type": "composer",
        "url": "https://packages.drupal.org/8"
    }
},

If you use the drupal composer template, then you should automatically have that line. Or start with a Drupal install this way:
composer create-project drupal/recommended-project:10.1.0 "install-dir"

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

jmev’s picture

I have the section mentioned in comment #3 but am getting the same error, but with the votingapi module. Any other troubleshooting tips?