本文介绍了作曲家“下载失败"错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows中使用xampp,而我的PHP版本是5.5.15.需要安装composer才能开始使用laravel框架.但是我的问题在这里,当我想安装作曲家时,会遇到此错误:

i use xampp in Windows and my PHP Version is 5.5.15 .need to install composer for Start work with laravel framework. but my problem is here, when i want install composer, be faced with this error :

Download failed: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
file_get_contents(): Failed to enable crypto
file_get_contents(https://getcomposer.org/composer.phar): failed to open stream: operation failed
Download failed: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
file_get_contents(): Failed to enable crypto
file_get_contents(https://getcomposer.org/composer.phar): failed to open stream: operation failed
Download failed: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
file_get_contents(): Failed to enable crypto
file_get_contents(https://getcomposer.org/composer.phar): failed to open stream: operation failed
The download failed repeatedly, aborting.

我该怎么办?有没有一种方法可以在不使用composer的情况下安装laravel?

What should I do?and is there a way to install laravel without using composer ?

推荐答案

您基本上必须将环境变量SSL_CERT_FILE设置为从以下链接下载的ssl-certificate的PEM文件的路径: ://curl.haxx.se/ca/cacert.pem"rel =" nofollow noreferrer> http://curl.haxx.se/ca/cacert.pem .

You basically have to set the environment variable SSL_CERT_FILE to the path of the PEM file of the ssl-certificate downloaded from the following link : http://curl.haxx.se/ca/cacert.pem.

我花了很多时间来解决这个问题.

It took me a lot of time to figure this out.

有关详细答案,您可以在这里查看: https://stackoverflow.com/questions/34590842/cannot-install-composer-on-mac-os-x

For a detailed answer, you can have a look here: https://stackoverflow.com/questions/34590842/cannot-install-composer-on-mac-os-x

这篇关于作曲家“下载失败"错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 06:16