当我在Symfony 3.4项目根目录中运行 composer update 时,脚本仍停留在:
Sensio\Bundle\DistributionBundle\Composer\Scripthandler::prepareDeploymentTarget
当我进行作曲家诊断时,我得到了:
Checking composer.json: OK
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: OK
Checking github.com rate limit: OK
Checking disk free space: OK
Checking pubkeys:
Tags Public Key Fingerprint: 57815BA2 7E54DC31 7ECC7CC5 573090D0 87719BA6 8F3BB723 4E5D42D0 84A14642
Dev Public Key Fingerprint: 4AC45767 E5EC2265 2F0C1167 CBBB8A2B 0C708369 153E328C AD90147D AFE50952
OK
Checking composer version: OK
Composer version: 1.9.1
PHP version: 7.2.24
PHP binary path: /usr/bin/php7.2
当我运行 php -v 时,我得到了:
PHP 7.2.24-0ubuntu0.18.04.1 (cli) (built: Oct 28 2019 12:07:07) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0,Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.24-0ubuntu0.18.04.1,Copyright (c) 1999-2018,by Zend Technologies
with Xdebug v2.6.0,Copyright (c) 2002-2018,by Derick Rethans
这是 composer update -vvv 的开始:
Reading ./composer.json
Loading config file ./composer.json
Checked CA file /etc/ssl/certs/ca-certificates.crt: valid
Executing command (/home/rgfactory/Sites/agora-server-app): git branch --no-color --no-abbrev -v
Failed to initialize global composer: Composer could not find the config file: /home/rgfactory/.composer/composer.json
To initialize a project,please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section
Reading /home/rgfactory/Sites/agora-server-app/vendor/composer/installed.json
Running 1.9.1 (2019-11-01 17:20:17) with PHP 7.2.24-0ubuntu0.18.04.1 on Linux / 4.18.20-041820-generic
Loading composer repositories with package information
我不知道该怎么办...
你们有什么线索吗?
更新: 我没有提到它,但是我使用ZSH(0h-my-zsh框架)。 顺便说一句,我尝试了BASH,它可以工作...