最近composer update 总提示:
Your configuration does not allow connection to http://packagist.phpcompose
r.com. See https://getcomposer.org/doc/06-config.md#secure-http for details
.
网上查一下,说是因为镜像使用用的是http,而原地址是需要https,所以配置下关掉https就好了。
{
"config": {
"secure-http": false
}
}
本文介绍了解决Composer在更新过程中遇到的HTTPS连接问题的方法。通过调整配置文件中的secure-http选项为false,可以顺利解决因镜像使用HTTP而非HTTPS导致的问题。
9588

被折叠的 条评论
为什么被折叠?



