我的网络与https不兼容,所以这样做
composer.phar install
Run Code Online (Sandbox Code Playgroud)
投
[Composer\Downloader\TransportException]
The "https://packagist.org/packages.json" file could not be downloaded: Failed to enable crypto
failed to open stream: operation failed
Run Code Online (Sandbox Code Playgroud)
我用了
{
"packagist": false
},
{
"type": "composer",
"url": "http://packagist.org",
"options": {
"ssl": {
"verify_peer": "false"
}
}
}
Run Code Online (Sandbox Code Playgroud)
作为一个http falback,但它再次崩溃在其他一点:
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
Run Code Online (Sandbox Code Playgroud)
我的问题只是使用TLSv1,以前的SSL版本应该可以工作,因为浏览器可以正常工作.
我该怎么办,这个问题也存在于依赖于https的其他cmd工具中,比如npm,bower,git,curl,...