composer error while updating “.git directory is m

2019-02-11 14:14发布

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

[RuntimeException]
The .git directory is missing from /var/www/site2.com/vendor/zf-commons/zfc
-admin, see http://getcomposer.org/commit-deps for more information

Since this error i cannot update any other modules in framework.

3条回答
男人必须洒脱
2楼-- · 2019-02-11 14:30

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
查看更多
做自己的国王
3楼-- · 2019-02-11 14:36

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

查看更多
Lonely孤独者°
4楼-- · 2019-02-11 14:52

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"

查看更多
登录 后发表回答