Unable to install this module on Drupal 9

composer2 require 'drupal/exif:^2.3'
./composer.json has been updated
Running composer update drupal/exif
Gathering patches for root package.
Loading composer repositories with package information
Updating dependencies
Info from https://repo.packagist.org: #StandWithUkraine
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Root composer.json requires drupal/exif ^2.3, found drupal/exif[dev-2.x, 2.x-dev (alias of dev-2.x)] but it does not match your minimum-stability.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Comments

zenimagine created an issue. See original summary.

damienmckenna’s picture

Category: Bug report » Support request
Priority: Major » Normal

It should work.

Try this:
composer why-not drupal/exif:2.3

Also, what is the "minimum-stability" value in your composer.json file?

zenimagine’s picture

composer.json

"minimum-stability": "stable",

damienmckenna’s picture

What does composer why-not drupal/exif:2.3 say?

zenimagine’s picture

composer2 why-not drupal/exif:2.3

[Symfony\Component\Console\Exception\RuntimeException]
Not enough arguments (missing: "version").

prohibits [-r|--recursive] [-t|--tree] [--]

zenimagine’s picture

there is this error message

damienmckenna’s picture

Ah, sorry, try this: composer why-not drupal/exif 2.3

zenimagine’s picture

there is this error message, I don't know this type of command with "why-not". Can I use it on my server in production without risk ?

composer why-not drupal/exif 2.3

[InvalidArgumentException]
Could not find package "drupal/exif" in your project

prohibits [-r|--recursive] [-t|--tree] [--]

damienmckenna’s picture

Assigned: Unassigned » damienmckenna

While doing some digging I found that the 2.3 release wasn't made available on Composer, I've contacted the d.o admins to see if this can be fixed.

zenimagine’s picture

OK, thanks

damienmckenna’s picture

Category: Support request » Bug report

It should work now.

zenimagine’s picture

Ok I confirm, thank you

zenimagine’s picture

Status: Active » Fixed
damienmckenna’s picture

Excellent, thank you!

Status: Fixed » Closed (fixed)

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

damienmckenna’s picture

Assigned: damienmckenna » Unassigned