作曲家完全禁用https [英] composer to disable https completely
本文介绍了作曲家完全禁用https的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的网络不能很好地使用 https,所以这样做
my network does not work well with https, so doing
composer.phar install
投掷
[Composer\Downloader\TransportException]
The "https://packagist.org/packages.json" file could not be downloaded: Failed to enable crypto
failed to open stream: operation failed
我用过
{
"packagist": false
},
{
"type": "composer",
"url": "http://packagist.org",
"options": {
"ssl": {
"verify_peer": "false"
}
}
}
作为 http 回退,但在其他地方再次崩溃:
as a http falback, but again it crashes in some other point:
Installing dependencies
- Installing symfony/translation (v2.4.0)
Downloading: 100%
Downloading: 100%
Downloading: 100%
[Composer\Downloader\TransportException]
The "https://api.github.com/repos/symfony/Translation/zipball/0919e0fc709217f8c9e5049f2603419fdd4a34ff" file could not be downloaded: Failed to
enable crypto
failed to open stream: operation failed
我的问题仅在于 TLSv1,以前的 SSL 版本应该可以工作,因为浏览器可以正常工作.
my problem is just with TLSv1, previous SSL versions should work, as the browsers work correctly.
我该怎么办,其他依赖https的cmd工具也存在这个问题,比如npm, bower, git, curl, ...
how should i do, the problem also exists in other cmd tools that depend on https like npm, bower, git, curl, ...
推荐答案
composer config --global disable-tls true
composer config --global secure-http false
这篇关于作曲家完全禁用https的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文