composer-normalize: Interface 'Localheinz\Json\Normalizer\NormalizerInterface' not found exception

Steps required to reproduce the problem

  1. Go PHP 7.1
  2. composer global require localheinz/composer-normalize
  3. composer update

Expected Result

  • Normal composer update output

Actual Result

  • Fatal error: Interface 'Localheinz\Json\Normalizer\NormalizerInterface' not found in /Users/user/.composer/vendor/localheinz/composer-normalize/src/Normalizer/ComposerJsonNormalizer.php on line 20

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 25 (17 by maintainers)

Most upvoted comments

@nicwortel

This is an issue in composer/composer and has already been fixed with https://github.com/composer/composer/commit/a74b63985e7cd811e5cdde30753249d8466666dd.

As a workaround, follow @Seldaek’s suggestion at https://github.com/composer/composer/issues/7516#issuecomment-410459001:

You can temporarily use composer self-update --snapshot to get the fix, I’ll release a tag as soon as https://github.com/composer/composer/issues/7517 gets fixed which should be soon enough.