composer创建新项目报错
composer create-project topthink/thinkphp ThinkPHP 报错。
[Composer\Downloader\TransportException] Your configuration does not allow connections to http://packagist.org/packages.json. See https://getcomposer.org/do c/06-config.md#secure-http for details.
修复方法:换http源,更改配置不要使用https加密连接
composer config -g secure-http false
$ composer config -g repo.packagist composer http://packagist.phpcomposer.com
$ composer config -g secure-http false
本文欢迎转载,转载请注明出处,如果涉及侵权,请企鹅:723887809。