当我尝试与作曲家更新教义时,我收到以下错误
[RuntimeException]
Failed to clone https://github.com/doctrine/dbal.git via git, https protocols, aborting.
- git://github.com/doctrine/dbal.git
error: could not lock config file .git/config: Permission denied
error: cannot open .git/FETCH_HEAD: Permission denied
- https://github.com/doctrine/dbal.git
error: could not lock config file .git/config: Permission denied
error: cannot open .git/FETCH_HEAD: Permission denied
我在我的作曲家.json 中使用这行作为教义
"doctrine/doctrine-bundle": "1.2.*@dev",
请检查供应商中的 doctrine 文件夹是否具有正确的权限。对我来说,删除教义文件夹并再次运行更新解决了问题。
$ sudo rm -rf vendor/doctrine ; ./composer update