当我尝试使用composer
更新学说时,我收到以下错误[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
我在composer.json
中使用这一行作为学说"doctrine/doctrine-bundle": "1.2.*@dev",
答案 0 :(得分:0)
请检查供应商中的doctrine文件夹是否具有正确的权限。我删除doctrine文件夹并再次运行更新修复了问题。
$ sudo rm -rf vendor/doctrine ; ./composer update