The “https://packagist.drupal-composer.org/packages.json" file could not be downloaded: failed
to open stream: Connection refused
It hasn’t been a sudden decision, it has been announced for months that the service will not be available after January 2017.
But still, some of us didn’t know about it (1683 results searching in github)
Use the official Package Repository from Drupal.org. It has been out of beta since 21st of December (read the announcement)
You might want to read this drupal.org guide: Using Composer to manage Drupal site dependencies
Basically, Your project’s composer.json should be updated to look like the following (for Drupal 8 sites)
Do you have still issues?
You can report issues in the project_composer issue queue: https://www.drupal.org/project/project_composer
Thanks to Drupal packagist contributors.
It has been a useful service. Their github repo is here if you need it.
Thanks in particular to:
- seldeak the creator of Composer and Packagist.org
- webflo the creator and maintainer of http://packagist.drupal-composer.org.
And Appnovation, who sponsored the initial development of Drupal.org’s composer endpoints.