使用composer更新doctrine可能是一个错误?

时间:2013-10-02 19:06:52

标签: symfony doctrine composer-php

当我尝试使用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",

1 个答案:

答案 0 :(得分:0)

请检查供应商中的doctrine文件夹是否具有正确的权限。我删除doctrine文件夹并再次运行更新修复了问题。

$ sudo rm -rf vendor/doctrine ; ./composer update