#1422·pure

Composer instructions do not work

Author: davejagodaCreated May 31, 2025Updated May 31, 2025

Describe the bug

The instructions to use composer to install pure-css don't work.

To Reproduce

$ composer --version
Composer version 2.7.1 2024-02-09 15:26:28
$ composer require pure-css/pure

Installation failed, deleting ./composer.json.

In RequireCommand.php line 226:
                                                                                                                          
  No composer.json present in the current directory (./composer.json), this may be the cause of the following exception.  
                                                                                                                          

In PackageDiscoveryTrait.php line 376:
                                                                                                                                                               
  Could not find a matching version of package pure-css/pure. Check the package spelling, your version constraint and that the package is available in a stab  
  ility which matches your minimum-stability (stable).                                                                                                         
                                                                                                                                                               

require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-m|--minimal-changes] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [<packages>...]

Expected behavior

Installation of pure-css succeeds.

Desktop (please complete the following information):

  • OS: Ubuntu 24.04.2 LTS

Additional context

This works:

$ composer require yahoo/purecss
./composer.json has been created
Running composer update yahoo/purecss
Loading composer repositories with package information
Updating dependencies
Lock file operations: 1 install, 0 updates, 0 removals
  - Locking yahoo/purecss (v3.0.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
  - Downloading yahoo/purecss (v3.0.0)
  - Installing yahoo/purecss (v3.0.0): Extracting archive
Generating autoload files
No security vulnerability advisories found.
Using version ^3.0 for yahoo/purecss

See also gh-1272