mingyunyuziyou

composer install后报 file could not be downloaded

作者: 秒速五厘米     
 


报错截图如下


报错内容:
[ComposerDownloaderTransportException]
The "https://packagist.org/p/provider-2018-01%245364abf20a2335046831825d0f875bd8117c10523d85a475acb2056d7214e62e.
json" file could not be downloaded (HTTP/1.1 404 Not Found)



解决方法

修改 composer 的全局配置文件

打开命令行窗口(windows用户)或控制台(Linux、Mac 用户)并执行如下命令:

复制

composer config -g repo.packagist composer https://packagist.phpcomposer.com