Mac上的composer更新无法正常工作 [英] composer update on mac not working

查看:92
本文介绍了Mac上的composer更新无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

Since I updated my PHP version to 5.4, I have trouble to update composer on my symphony 2 project.

$ 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

此处是屏幕快照的链接:

Here is link to a screenshot:

http://sanofuzir.com/Screen.jpg

我该怎么办?

推荐答案

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

it's more likely that you can't even ping the url on the console. then try the solution here: https://discussions.apple.com/message/10713911#10713911 just refresh your DHCP address, and it works for me!

这篇关于Mac上的composer更新无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆