composer 出现 configuration does not allow connection to http.......

时间:2023-03-09 00:16:15
composer 出现 configuration does not allow connection to http.......

出现这样的问题是,镜像使用的是http,而原地址是需要https,所以配置下关掉https就好了。

composer 出现 configuration does not allow connection to http.......

我们来个全局设置的方法:

composer config -g secure-http false

再次运行效果果然不错

composer 出现 configuration does not allow connection to http.......

就可以了。

composer 出现 configuration does not allow connection to http.......