Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/symfony/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Symfony 使用composer更新条令时出错可能是错误?_Symfony_Doctrine_Composer Php - Fatal编程技术网

Symfony 使用composer更新条令时出错可能是错误?

Symfony 使用composer更新条令时出错可能是错误?,symfony,doctrine,composer-php,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

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

请检查供应商内的条令文件夹是否具有正确的权限。对我来说,删除条令文件夹并再次运行更新修复了问题

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

权限被拒绝
->请仔细查看您的权限我知道,但是我认为权限在github的原则方面。这意味着他们不允许我从git中获取最新版本。权限问题与计算机上的
.git/config
文件有关。您使用的是什么用户?此文件的权限设置是什么?我使用的是我在运行cpanel的centos系统上创建的一个用户(称为admin),以root用户身份运行它似乎可以正常工作,但这并不是真正的解决方案:s并且我找不到.git/config