Composer无法执行git状态

时间:2013-10-29 19:24:21

标签: php git composer-php

当我尝试进行作曲家更新时,我目前收到此错误。

Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Updating leafo/lessphp (dev-master c6cd043 => v0.3.9)
    [RuntimeException]                                             
    Failed to execute git status --porcelain --untracked-files=no  

我的需求块是:

"require": {
    "php": ">=5.3.3",
    "symfony/symfony": "2.3.*",
    "twig/extensions": "1.0.*",
    "symfony/assetic-bundle": "2.3.*",
    "symfony/swiftmailer-bundle": "2.3.*",
    "symfony/monolog-bundle": "2.3.*",
    "sensio/distribution-bundle": "2.3.*",
    "sensio/framework-extra-bundle": "2.3.*",
    "sensio/generator-bundle": "2.3.*",
    "knplabs/knp-menu": "2.0.*@dev",
    "knplabs/knp-menu-bundle": "2.0.*@dev",
    "incenteev/composer-parameter-handler": "~2.0",
    "leafo/lessphp": "v0.3.9",
    "twbs/bootstrap": "2.3.*",
    "jquery/jquery": "1.9.*",
    "FortAwesome/Font-Awesome": "3.2.1",
    "egeloen/ckeditor-bundle": "2.*"
},

我不知道错误意味着什么。我试图通过谷歌搜索,但还没有能够解决我的问题。我事件试图删除包“leafo / lessphp”:“v0.3.9”并再次运行更新,但即使抛出相同的错误。

我尝试运行“composer status https://github.com/leafo/lessphp.git”,这给了我错误:

fatal: Not a git repository (or any of the parent directories): .git

但我可以通过浏览器打开链接。该链接在composer.lock中找到

2 个答案:

答案 0 :(得分:1)

现在似乎已经修好了#34; composer install --prefer-dist"在这里找到stackoverflow.com/a/17794382/995653现在我没有收到任何错误。很奇怪,但文件必须以某种方式混淆。

答案 1 :(得分:1)

在Windows上我安装了git,然后重启了windows。它有效。