尝试使用作曲家安装枪口时如何解决错误?

时间:2019-04-25 09:56:23

标签: php iis composer-php guzzle

当我尝试使用composer require guzzlehttp/guzzle安装guzzle时,出现以下错误消息:

  

您正在运行禁用SSL / TLS保护的Composer。   无法下载“ https://repo.packagist.org/packages.json”文件:   https://repo.packagist.org无法完全加载,软件包信息是从本地缓存加载的,可能已过期
  无法下载“ https://repo.packagist.org/packages.json”文件:   https://repo.packagist.org无法完全加载,软件包信息是从本地缓存加载的,可能已过期

  [Composer\Downloader\TransportException]                                                                                                                                                                                                                              
  The "https://passthrough.fw-notify.net/static/auth_transparent.html?return=http://repo.packagist.org/p/guzzlehttp/guzzle%24b1cfe2f977a75ca671f5b311f8d4163989b8b742599dcfee07d767f01c8cd0e5.json" file could not be downloaded: SSL operation failed with code 1. Op  
  enSSL Error messages:                                                                                                                                                                                                                                                 
  error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed                                                                                                                                                                                  
  Failed to enable crypto                                                                                                                                                                                                                                               
  failed to open stream: operation failed

我试图删除extension=openssl文件中php.ini之前的分号。移除后会抛出:

  

PHP警告:模块'openssl'已在第0行的Unknown中加载

     

PHP警告:模块'openssl'已在第0行的Unknown中加载

0 个答案:

没有答案