duanmiaosi0150 2013-10-29 19:24
浏览 865
已采纳

Composer无法执行git状态

I am currently getting this error when I try to do a composer update.

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  

My require block is:

"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.*"
},

I have no idea what the error means. I have tried to search via google but havent been able to solve my issue. I event tried to remove the package "leafo/lessphp": "v0.3.9" and run update again but even that throws the same error.

I tried to run "composer status https://github.com/leafo/lessphp.git" that gives me the error:

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

But I can open the link through the browser. The link was found in the composer.lock

  • 写回答

2条回答 默认 最新

  • dr897777 2013-10-29 20:25
    关注

    It seems to be fixed now running "composer install --prefer-dist" found here stackoverflow.com/a/17794382/995653 Now I dont get any errors. Very strange but the files must have been mixed-up somehow.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作