composer error while updating “.git directory is missing”

前端 未结 3 969
生来不讨喜
生来不讨喜 2021-01-03 20:18

When I Updating zf-commons/zfc-admin using composer, it gives an RuntimeException error saying that

[RuntimeException]
The .git directory is

相关标签:
3条回答
  • 2021-01-03 20:54

    The easiest way is to remove the install folder of that component before making the composer update

    rm -rf  /var/www/site2.com/vendor/zf-commons/zfc
    composer update
    
    0 讨论(0)
  • 2021-01-03 21:00

    delete zf-commons/zfc-admin then execute composer update. usually you are not adviced to commit zf-commons/zfc-admin to your repository

    0 讨论(0)
  • 2021-01-03 21:02

    When ever I have "issues" with composer the first thing I do is delete the vendor folder and do a "composer update"

    You could also try to delete just that one component "vendor/zf-commons"

    0 讨论(0)
提交回复
热议问题