Deprecated: Optional parameter $keys declared before required parameter $cms_id is implicitly treated as a required parameter in /home/www/dev/work/class/blog/CmsKey.php on line 75

Deprecated: Creation of dynamic property lvesu\lvesu\controller\blog\main::$outlink is deprecated in /home/www/dev/work/website/lvesu/template/blog/cms/cms.tpl on line 2

Deprecated: Creation of dynamic property lvesu\lvesu\controller\blog\main::$status is deprecated in /home/www/dev/work/website/lvesu/template/blog/index.head.php on line 2
composer遇到Your configuration does not allow connection to http://的问题怎么解决 - 互联网笔记

略微加速

略速 - 互联网笔记

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

2021-11-09 leiting (2826阅读)

标签 PHP

有时候composer install/update的时候会报错:

[Composer\Downloader\TransportException]                                                                                                                          
  Your configuration does not allow connection to http://xxxx... for details.



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

composer config secure-http false

全局设置:

composer config -g secure-http false



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

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3