laravel composer 安装组件时报错
错误信息
laravel composer 安装组件时报错
php ./composer.phar install
- 错误信息
- Installing laravel/framework (v5.1.46)
Loading from cache
- Installing guzzlehttp/guzzle (6.3.2)
Downloading: Failed
Downloading: Failed
Downloading: Failed
Failed to download guzzlehttp/guzzle from dist: The "https://files.phpcomposer.com/files/guzzle/guzzle/68d0ea14d5a3f42a20e87632a5f84931e2709c90.zip" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
Failed to enable crypto
failed to open stream: operation failed
Now trying to download from source
- Installing guzzlehttp/guzzle (6.3.2)
Cloning 68d0ea14d5a3f42a20e87632a5f84931e2709c90
之前有几个项目都是这么用的,没有这个错误
error:14090086:SSL routines::ssl3_get_server_certificate:certificate verify failed
然后 我按照这个错误去找
参考了这篇文章: https://blog.csdn.net/w670328...
然后这个步骤操作还是报错:
php -r "print_r(openssl_get_cert_locations());"
(
[default_cert_file] => /etc/pki/tls/cert.pem
[default_cert_file_env] => SSL_CERT_FILE
[default_cert_dir] => /etc/pki/tls/certs
[default_cert_dir_env] => SSL_CERT_DIR
[default_private_dir] => /etc/pki/tls/private
[default_default_cert_area] => /etc/pki/tls
[ini_cafile] => /etc/pki/tls/cacert.pem
[ini_capath] =>
)
会不会是资源的问题:
https://files.phpcomposer.com...
在浏览器打开这个资源
显示证书已过期!
也邮件了 packagist 团队,但没有得到回复! 大家有遇到这个问题吗?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
换个国内镜像
https://laravel-china.org/com...