79550046

Date: 2025-04-02 08:13:45
Score: 0.5
Natty:
Report link

Hang on.... wasn't Composer supposed to mean we had one-click installation?

So how come when I copy the link out of the Drupal module page e.g.

composer require 'drupal/blog:^3.1'

I get the error message

"Root composer.json requires drupal/blog, it could not be found in any version, there may be a typo in the package name."

And the proposed solutions are that I have to write and run code?

Blog is not the only package I'm having this problem with. Yesterday, I solved it by installing a previous version (2.x instead of the current 3.x) for a different package. And it's on both D10 and D11 with the latest version of Composer (which D11 reports isn't the right one) and approved PHP.

This is silly.

Reasons:
  • Whitelisted phrase (-2): I solved
  • RegEx Blacklisted phrase (1): I get the error
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Nigel Morris-Cotterill