0

当我尝试使用作曲家更新学说时出现以下错误

[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",
4

1 回答 1

0

请检查供应商中的学说文件夹是否具有正确的权限。对我来说,删除学说文件夹并再次运行更新解决了这个问题。

$ sudo rm -rf vendor/doctrine ; ./composer update
于 2014-01-23T22:11:40.887 回答