发布于:2020-03-29 10:01 阅读次数:1294 作者:云码素材 分类:thinkphp6教程 关键词:thinkphp6
thinkphp6.02 composer安装 时报Failed to clone https://github.com/symfony/polyfill-php72.git错误,导致thinkphp6通过composer安装不上,找到一些资料,今天分享给大家。
错误信息一
[RuntimeException] Failed to clone https://github.com/symfony/polyfill-php72.git, git was not found, check that it is installed and inyour PATH env. 'git' is not recognized as an internal or external command, operable program or batch file.
问题原因: 未使用国内镜像
解决方案: 查看官网--https://pkg.phpcomposer.com
composer config -g repo.packagist composer https://packagist.phpcomposer.com
错误信息二:
[Composer\Downloader\TransportException] Your configuration does not allow connections to http://packagist.org/packages.json. See https://getcomposer.org/doc/06-config.md#secure-http for details.
问题描述:自己的配置文件不支持http,解决方案:禁用ssl
composer config -g secure-http false
错误信息三:
[Composer\Exception\NoSslException] The openssl extension is required for SSL/TLS protection but is not available. If you can not enable the openssl extension, you can disable this error, at your own risk, by setting the ‘disable-tls’ option to true.
问题描述: 不能使用ssl/tls(https)
解决方案:
1.开启PHP openssl扩展,使用 php -m查看是否安装了openssl扩展
windows下,修改php.ini-- ;extension=php_openssl.dll 前面的分号去掉
linux下安装openssl扩展即可
2.关掉composer的tls
composer config -g -- disable-tls true
通过以上三个问题的解决,基本上就能解决你的composer不能下载thinkphp6.02的问题,收藏,转发,备用!
我要加群:资源共享的时代,不要再单打独斗!加小编微信号加入群:xnynews(备注:云码素材入群),qq群号:202498279,一起技术学习,资源分享!
热门标签
推荐模板
热门文章
2020-02-03 15:16 浏览:3277
2019-08-28 17:28 浏览:2583
3免费可商用的视频素材网站,真的一个比一个好用!收藏转发吧!
2019-10-18 15:26 浏览:2226
2019-09-15 20:06 浏览:1562
5这个crm系统源码值得拥有!thinkphp5全开源crm客户管理系统 二开方便!
2019-12-09 15:14 浏览:1543
2019-09-08 20:23 浏览:1524
2020-07-15 23:01 浏览:1413
2019-04-09 16:54 浏览:1374
92019年程序员学习路线图 如果你想学习开发 做码农 收藏了吧!
2019-10-11 13:05 浏览:1353
10thinkphp6.02 composer安装 Failed to clone https://github.com/symfony/polyfill-php72.git
2020-03-29 10:31 浏览:1295