我想通过 composer 安装 laravel 2.2
$ composer create-project --prefer-dist laravel/laravel sampleBackend 5.2
但每次我这样做时 Composer 都会显示一条消息:
The "http://packagist.org/p/provider-2014%2490c266c2df21924a932e564b7f39bf03d55b933fbe43744a6056eab59b7b4cf9.json" file could not be downloaded: failed to open stream: HTTP request failed! http://packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date
最佳答案
首先通过运行清除 Composer 缓存
composer clear-cache
然后运行这个命令
composer -vvv
当我尝试安装 laravel 时,这个解决方案对我有用。
关于php - Composer laravel 安装 : "http://packagist.org" file could not be downloaded,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48023875/