无法下载dompdf / dompdf Laravel Composer

时间:2018-06-04 02:14:47

标签: php laravel laravel-5 composer-php

我是通过XAMPP在本地计算机上运行的。我试图安装几次,它仍然给我同样的错误。试图ping google.com,并显示没有错误(为了清除我自己,这不是DNS问题)。在GitHub问题上没有发现与此相关的具体内容。

当我尝试通过Composer要求barryvdh / laravel-dompdf时,我收到此错误。

Failed to download dompdf/dompdf from dist: The "https://api.github.com/repos/dompdf/dompdf/zipball/5113accd9ae5d466077cce5208dcf3fb871bf8f6" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: No such host is known.
failed to open stream: php_network_getaddresses: getaddrinfo failed: No such host is known.

以下是bash的复制详情。

$ composer require barryvdh/laravel-dompdf
Using version ^0.8.2 for barryvdh/laravel-dompdf
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 5 installs, 0 updates, 0 removals
  - Installing sabberworm/php-css-parser (8.1.0): Downloading (100%)
  - Installing phenx/php-svg-lib (v0.3.2): Downloading (100%)
  - Installing phenx/php-font-lib (0.5.1): Downloading (100%)
  - Installing dompdf/dompdf (v0.8.2): Downloading (90%)
Downloading (failed)
Downloading (failed)    Failed to download dompdf/dompdf from dist: The "https://api.github.com/repos/dompdf/dompdf/zipball/5113accd9ae5d466077cce5208dcf3fb871bf8f6" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: No such host is known.
failed to open stream: php_network_getaddresses: getaddrinfo failed: No such host is known.
    Now trying to download from source
  - Installing dompdf/dompdf (v0.8.2): Cloning 5113accd9a


  [RuntimeException]
  Failed to clone https://github.com/dompdf/dompdf.git via https, ssh protocols, aborting.
  - https://github.com/dompdf/dompdf.git
    Cloning into 'D:\xampp\htdocs\rtdo\vendor\dompdf\dompdf'...
    fatal: unable to access 'https://github.com/dompdf/dompdf.git/': Could not resolve host: github.com
  - git@github.com:dompdf/dompdf.git
    Cloning into 'D:\xampp\htdocs\rtdo\vendor\dompdf\dompdf'...
    ssh: Could not resolve hostname github.com: Name or service not known
    fatal: Could not read from remote repository.

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

如果您需要进一步的详细信息,请通知我。谢谢!

0 个答案:

没有答案