hamcrest / hamcrest-php

PHP Hamcrest implementation [Official]
Other
6.95k stars 44 forks source link

hamcrest php installation failed using cmd #46

Closed sejunaid closed 7 years ago

sejunaid commented 7 years ago

When installing laravel using cmd all files download and then installed successfully except hamcrest-php

Failed to download hamcrest/hamcrest-php from dist: The "https://api.github.com/repos/hamcrest/hamcrest-php/zipball/b37020aa976fa52d3de9aa904aa2522dc518f79c" 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

sejunaid commented 7 years ago

I think its may be change in directory of hamcrest here on Github .

aik099 commented 7 years ago

There 2 problems here:

  1. the No such host is known. failed to open stream: php_network_getaddresses: getaddrinfo failed: No such host is known. error tells, that there is temporary network error while attempting to DNS resolve github.com hostname
  2. the Failed to clone https://github.com/hamcrest/hamcrest-php.git, git was not found tells, that you don't have Git installed locally and that's why git clone command that Composer tried to run also failed
sejunaid commented 7 years ago

Yeah I updated composer via cmd and then it worked.