mac上的作曲家更新无法正常工作

时间:2013-10-07 20:35:34

标签: php symfony composer-php

由于我将PHP版本更新为5.4,因此无法在symphony 2项目中更新作曲家。

$ php composer.phar update

给了我:

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

以下是截图链接:

http://sanofuzir.com/Screen.jpg

我该怎么办?

1 个答案:

答案 0 :(得分:1)

您更有可能甚至无法ping控制台上的网址。 然后在这里尝试解决方案:https://discussions.apple.com/message/10713911#10713911 只需刷新您的DHCP地址,它就适合我!