Error
[Composer\Downloader\TransportException]
The "http://packagist.org/p/symfony/class-loader$78539d95ddac0cc02514ed9cdf1515023dcd289b4f7e03ed948e868a1b02acf2.json" file could not be downloaded: failed to open stream: HTTP request failed!
The error means the composer is unable to process the request due to HTTP and we need to update
and add https instead of http.
Solution:
In your composer.json update following
"repositories": [ { "packagist": false }, { "type": "composer", "url": "https://packagist.org/" } ],
Solution:2
Run this command to set https globally on the system.
composer config --global repos.packagist composer https://repo.packagist.org
Updated on 23/8/2020
0 Comments