composer遇到Your configuration does not allow connection to http://的问题怎么解决

有时候composer install/update的时候会报错:[Composer\Downloader\TransportException]

Your configuration does not allow connection to http://ooxx/xxoo.Git. See https://getcomposer.org/doc/06-config.md#secure-http for details.

解决方法是设置一个本地或全局的composer配置:

`composer config secure-http false`

全局设置:

`composer config -g secure-http false`

意义是默认禁用https请求,就可以了

    原文作者:JimmyTony
    原文地址: https://www.jianshu.com/p/3f94fd908856
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞