【问题标题】:composer update on mac not workingmac上的作曲家更新不起作用
【发布时间】: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


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-01-30
    • 2016-10-20
    • 2022-06-13
    • 2021-10-05
    • 2017-03-13
    • 1970-01-01
    • 2015-12-01
    • 2015-09-11
    相关资源
    最近更新 更多