当我使用 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.
当我遇到 composer 的问题"时,我做的第一件事就是删除 vendor 文件夹并进行composer update"
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"