Composer异常: Your configuration does not allow connection to xx.

来源:互联网 发布:淘宝买家秀大尺度网站 编辑:程序博客网 时间:2024/05/21 10:20

使用composer下载一个七牛云的Laravel扩展包:composer require itbdw/laravel-storage-qiniu,但是composer报错。

[Composer\Downloader\TransportException]
Your configuration does not allow connection to http://packagist.phpcomposer.com. 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请求,就可以了。

链接:http://blog.csdn.net/ownfire/article/details/50923619

阅读全文
0 0
原创粉丝点击