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.......

 

 

 

就可以了。

 

 

原文链接:https://www.cnblogs.com/wangjiafang/p/5697462.html