Your configuration does not allow connection to http://packagist.org

composer update/install 出现如下错误:

[Composer\Downloader\TransportException]                                                                                          
  Your configuration does not allow connection to http://packagist.org. See https://getcomposer.org/doc/06-config.md#secure-http f  
  or details.     

解决方法:
禁用 https 请求

//设置当前
composer config secure-http false

//全局设置
composer config -g secure-http false

个人博客:www.hellocodes.cn

猜你喜欢

转载自blog.csdn.net/h20101988/article/details/70153866