laravel - phpdocumentor/reflection-docblock dowloading失敗

來源:互聯網
上載者:User
總是報同樣的錯誤,請教如何解決

rd@rd-G31M-ES2C:~/www/laravel-dev$ composer installLoading composer repositories with package informationInstalling dependencies (including require-dev) from lock file  - Installing phpdocumentor/reflection-docblock (2.0.4)    Downloading: Failed           Downloading: Failed           Downloading: Failed           Failed to download phpdocumentor/reflection-docblock from dist: The "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/d68dbdc53dc358a816f00b300704702b2eaff7b8" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolutionfailed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution    Now trying to download from source  - Installing phpdocumentor/reflection-docblock (2.0.4)    Cloning d68dbdc53dc358a816f00b300704702b2eaff7b8                                                                                                                           [RuntimeException]                                                                                                       Failed to clone https://github.com/phpDocumentor/ReflectionDocBlock.git via https, ssh protocols, aborting.              - https://github.com/phpDocumentor/ReflectionDocBlock.git                                                                  Cloning into '/home/rd/www/laravel-dev/vendor/phpdocumentor/reflection-docblock'...                                      fatal: unable to access 'https://github.com/phpDocumentor/ReflectionDocBlock.git/': Could not resolve host: github.    com                                                                                                                      - git@github.com:phpDocumentor/ReflectionDocBlock.git                                                                      Cloning into '/home/rd/www/laravel-dev/vendor/phpdocumentor/reflection-docblock'...                                      ssh: Could not resolve hostname github.com: Temporary failure in name resolution                                         fatal: Could not read from remote repository.                                                                                                                                                                                                     Please make sure you have the correct access rights                                                                      and the repository exists. 
The "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/d68dbdc53dc358a816f00b300704702b2eaff7b8" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolutionfailed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution

這個包我瀏覽器可以直接下載下來的,不知道為什麼composer就是死活下不下來

回複內容:

總是報同樣的錯誤,請教如何解決

rd@rd-G31M-ES2C:~/www/laravel-dev$ composer installLoading composer repositories with package informationInstalling dependencies (including require-dev) from lock file  - Installing phpdocumentor/reflection-docblock (2.0.4)    Downloading: Failed           Downloading: Failed           Downloading: Failed           Failed to download phpdocumentor/reflection-docblock from dist: The "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/d68dbdc53dc358a816f00b300704702b2eaff7b8" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolutionfailed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution    Now trying to download from source  - Installing phpdocumentor/reflection-docblock (2.0.4)    Cloning d68dbdc53dc358a816f00b300704702b2eaff7b8                                                                                                                           [RuntimeException]                                                                                                       Failed to clone https://github.com/phpDocumentor/ReflectionDocBlock.git via https, ssh protocols, aborting.              - https://github.com/phpDocumentor/ReflectionDocBlock.git                                                                  Cloning into '/home/rd/www/laravel-dev/vendor/phpdocumentor/reflection-docblock'...                                      fatal: unable to access 'https://github.com/phpDocumentor/ReflectionDocBlock.git/': Could not resolve host: github.    com                                                                                                                      - git@github.com:phpDocumentor/ReflectionDocBlock.git                                                                      Cloning into '/home/rd/www/laravel-dev/vendor/phpdocumentor/reflection-docblock'...                                      ssh: Could not resolve hostname github.com: Temporary failure in name resolution                                         fatal: Could not read from remote repository.                                                                                                                                                                                                     Please make sure you have the correct access rights                                                                      and the repository exists. 
The "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/d68dbdc53dc358a816f00b300704702b2eaff7b8" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolutionfailed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution

這個包我瀏覽器可以直接下載下來的,不知道為什麼composer就是死活下不下來

錯誤資訊裡有說明是網域名稱解析錯誤。
dns配好了?

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.