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条)

报告相同问题?

悬赏问题

  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误