composer-normalize: Installation fails in fresh project (with no other dependencies)

Steps required to reproduce the problem

  1. Make a fresh project without any dependencies.
  2. Run composer require ergebnis/composer-normalize and wait for it to finish.
  3. See an error message.

Expected Result

Install without errors. Tried on 3 machines and all result in the same issue.

Actual Result

❯ composer require ergebnis/composer-normalize
Using version ^2.10 for ergebnis/composer-normalize
./composer.json has been created
Running composer update ergebnis/composer-normalize
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 ergebnis/composer-normalize ^2.10 -> satisfiable by ergebnis/composer-normalize[2.10.0].
    - ergebnis/composer-normalize 2.10.0 requires ergebnis/json-printer ^3.1.1 -> found ergebnis/json-printer[dev-main] but it does not match the constraint.


Installation failed, deleting ./composer.json.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 19 (14 by maintainers)

Most upvoted comments

@localheinz thanks 😉

@faustbrian

Running

$ rm -rf ~/.composer
$ cd ~/Sites
$ rm -rf foo
$ mkdir foo
$ cd foo
$ composer require --dev ergebnis/composer-normalize

works fine for me.