【发布时间】:2013-10-14 13:56:46
【问题描述】:
自从我将 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
我该怎么办?
【问题讨论】:
-
欢迎来到 SO。您可以使用代码和引用格式来使您的帖子更具可读性。
-
诊断命令是
composer diag,它会告诉你一些可能出错的事情。您可能在更新时禁用了 SSL 模块。 -
试试这里提到的解决方案:stackoverflow.com/questions/17947791/…
标签: php symfony composer-php