更新“.git 目录丢失"时出现作曲家错误 [英] composer error while updating ".git directory is missing"

查看:35
本文介绍了更新“.git 目录丢失"时出现作曲家错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用 composer 更新 zf-commons/zfc-admin 时,它给出了一个 RuntimeException 错误,提示

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

[运行时异常]
/var/www/site2.com/vendor/zf-commons/zfc
中缺少 .git 目录-admin,请参阅http://getcomposer.org/commit-deps 了解更多信息

[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.

推荐答案

每当我对作曲家有问题"时,我做的第一件事就是删除供应商文件夹并进行作曲家更新"

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

您也可以尝试仅删除一个组件vendor/zf-commons"

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

这篇关于更新“.git 目录丢失"时出现作曲家错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆