首页 >后端开发 >php教程 >laravel - phpdocumentor/reflection-docblock dowloading失败

laravel - phpdocumentor/reflection-docblock dowloading失败

WBOY
WBOY原创
2016-09-15 11:30:561587浏览

总是报同样的错误,请教如何解决

<code>rd@rd-G31M-ES2C:~/www/laravel-dev$ composer install
Loading composer repositories with package information
Installing 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 resolution
failed 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. 
</code>
<code>The "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/d68dbdc53dc358a816f00b300704702b2eaff7b8" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution
failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution
</code>

这个包我浏览器可以直接下载下来的,不知道为什么composer就是死活下不下来

回复内容:

总是报同样的错误,请教如何解决

<code>rd@rd-G31M-ES2C:~/www/laravel-dev$ composer install
Loading composer repositories with package information
Installing 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 resolution
failed 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. 
</code>
<code>The "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/d68dbdc53dc358a816f00b300704702b2eaff7b8" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution
failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution
</code>

这个包我浏览器可以直接下载下来的,不知道为什么composer就是死活下不下来

错误信息里有说明是域名解析错误。
dns配好了?

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn