2013-10-07 90 views
1

由於我將PHP版本更新爲5.4,因此我無法更新symphony 2項目中的作曲家。mac上的作曲家更新無法正常工作

$ 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

我應該怎麼辦?

+0

歡迎來到SO。您可以使用代碼和報價格式來提高您的文章的可讀性。 – span

+1

診斷命令是'composer diag',它會告訴你一些關於可能錯誤的事情。您可能在更新時禁用了SSL模塊。 – Sven

+0

試試這裏提到的解決方案:http://stackoverflow.com/questions/17947791/laravel4-composer-update-failing –

回答