Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 编写器诊断和安装错误_Php_Git_Ssl_Composer Php - Fatal编程技术网

Php 编写器诊断和安装错误

Php 编写器诊断和安装错误,php,git,ssl,composer-php,Php,Git,Ssl,Composer Php,如果我运行“composer diagnose”,检查github.com速率限制时会显示一条失败消息: Checking platform settings: OK Checking git settings: OK Checking http connectivity to packagist: OK Checking https connectivity to packagist: OK Checking github.com rate limit: FAIL [Composer\Down

如果我运行“composer diagnose”,检查github.com速率限制时会显示一条失败消息:

Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: OK
Checking github.com rate limit: FAIL
[Composer\Downloader\TransportException] The "https://api.github.com/rate_limit" file could not be downloaded: SSL: Connection reset by peer
Failed to enable crypto
failed to open stream: operation failed
Checking disk free space: OK
Checking pubkeys: 
Tags Public Key Fingerprint: 57815BA2 7E54DC31 7ECC7CC5 573090D0  87719BA6 8F3BB723 4E5D42D0 84A14642
Dev Public Key Fingerprint: 4AC45767 E5EC2265 2F0C1167 CBBB8A2B  0C708369 153E328C AD90147D AFE50952
OK
Checking composer version: OK
我不支持代理或防火墙,我可以从HTTP或HTTPS下载所有内容。我试图改变我的cacert.pem和其他一切。但没有什么能解决它

当我尝试安装软件包时,也会发生错误:

sudo composer require cocur/slugify
Using version ^2.0 for cocur/slugify
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing cocur/slugify (v2.0)
    Downloading: 100%         
    Downloading: 100%         
    Downloading: 100%         
    Failed to download cocur/slugify from dist: The "https://api.github.com/repos/cocur/slugify/zipball/912bf41f940f9a4e38ff1284b1841eaa71911d7f" file could not be downloaded: SSL: Connection reset by peer
Failed to enable crypto
failed to open stream: operation failed
    Now trying to download from source
  - Installing cocur/slugify (v2.0)
    Cloning 912bf41f940f9a4e38ff1284b1841eaa71911d7f
The authenticity of host 'github.com (192.30.252.130)' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)? yes

Installation failed, reverting ./composer.json to its original content.


  [RuntimeException]                                                                                                                               
  Failed to clone https://github.com/cocur/slugify.git via https, ssh protocols, aborting.                                                         
  - https://github.com/cocur/slugify.git                                                                                                           
    Cloning into '/home/user/temp/vendor/cocur/slugify'...                                                                                         
    fatal: unable to access 'https://github.com/cocur/slugify.git/': gnutls_handshake() failed: A TLS packet with unexpected length was received.  
  - git@github.com:cocur/slugify.git                                                                                                               
    Cloning into '/home/user/temp/vendor/cocur/slugify'...                                                                                         
    Warning: Permanently added 'github.com,192.30.252.130' (RSA) to the list of known hosts.                                                       
    Permission denied (publickey).                                                                                                                 
    fatal: Could not read from remote repository.                                                                                                  

    Please make sure you have the correct access rights                                                                                            
    and the repository exists.                                                                                                                     


require [--dev] [--prefer-source] [--prefer-dist] [--no-plugins] [--no-progress] [--no-update] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--] [<packages>]...
sudo编写器需要cocur/slugify
将^2.0版用于cocur/slugify
./composer.json已更新
使用包信息加载composer存储库
更新依赖项(包括需要开发人员)
-安装cocur/slugify(v2.0)
下载:100%
下载:100%
下载:100%
未能从dist下载cocur/slugify:The“https://api.github.com/repos/cocur/slugify/zipball/912bf41f940f9a4e38ff1284b1841eaa71911d7f“无法下载文件:SSL:对等方重置连接。”
无法启用加密
无法打开流:操作失败
现在正在尝试从源代码下载
-安装cocur/slugify(v2.0)
克隆912BF41F940F9A4 E38FF1284B1841EAA71911D7F
无法确定主机“github.com(192.30.252.130)”的真实性。
RSA密钥指纹是16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48。
是否确实要继续连接(是/否)?对
安装失败,将./composer.json还原为其原始内容。
[运行时异常]
克隆失败https://github.com/cocur/slugify.git 通过https、ssh协议终止。
- https://github.com/cocur/slugify.git                                                                                                           
正在克隆到“/home/user/temp/vendor/cocur/slugify”。。。
致命:无法访问'https://github.com/cocur/slugify.git/“:gnutls_handshake()失败:收到长度意外的TLS数据包。
- git@github.com:cocur/slagify.git
正在克隆到“/home/user/temp/vendor/cocur/slugify”。。。
警告:已将'github.com,192.30.252.130'(RSA)永久添加到已知主机列表中。
权限被拒绝(公钥)。
致命:无法从远程存储库读取。
请确保您拥有正确的访问权限
并且存储库存在。
需要[--开发][--首选源][--首选区][--无插件][--无进展][--无更新][--更新无开发][--使用依赖项更新][--忽略平台需求][--对软件包进行排序]-[o |--优化自动加载程序]-[a |--类映射权威][--[]]。。。

是否生成了中建议的OAuth令牌?您是否安装了openssl php扩展?是否生成了中建议的OAuth令牌?您安装了openssl php扩展吗?