Composer update not working on Mac
Since I updated my PHP version to 5.4, I am having problems updating composer in my symphony 2 project.
$ php composer.phar update
gives me:
The "https://packagist.org/packages.json" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known
failed to open stream: php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known
_https://packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date
[RuntimeException]
Failed to execute git status --porcelain --untracked-files=no
error: bad index file sha1 signature
fatal: index file corrupt
Here is a link to the screenshot:
http://sanofuzir.com/Screen.jpg
What should I do?
+1
source to share
1 answer
it's more likely that you can't even ping the url in the console. then try the solution here: https://discussions.apple.com/message/10713911#10713911 just update your DHCP address and it works for me!
+1
source to share