2016年05月10日 21:26
C:\symfony > php composer.phar require doctrine/doctrine-fixtures-bundle --dev
Using version ^2.3 for doctrine/doctrine-fixtures-bundle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev) ・・・まいど、ここでフリーズ
C:\symfony > php composer.phar require doctrine/doctrine-fixtures-bundle --dev -vvv ・・・ You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug Reading ./composer.json Loading config file ./composer.json ・・・ いちおう動いてるみたいなんだけど、・・・。 ・・・ ・・・ Downloading http://packagist.org/p/symfony/security-guard%24f1d727af4489a98b6f4786fb09788ffd9c193490cda4ece2e8812cf97f0297dc.json Writing C:/Users/***/AppData/Local/Composer/repo/https---packagist.org/provider-symfony$security-guard.json into cache ・・・ どうやら、コレが原因にゃ。
C:\symfony > php composer.phar diagnose ・・・ 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: FAIL ・・・問題の個所。公開鍵がFAIL?・・・。 Missing pubkey for tags verification Missing pubkey for dev verification Run composer self-update --update-keys to set them up・・・ こうするといいらしい。 Checking composer version: OK
C:\symfony > php composer.phar self-update --update-keys ・・・ You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug Open https://composer.github.io/pubkeys.html to find the latest keys Enter Dev / Snapshot Public Key (including lines with -----): ・・・ ココで、サイトから「pubkey for dev verification 」 の暗号化された文字をコピペ。(--- 線も必要) ・・・ ・・・ Enter Tags Public Key (including lines with -----): ・・・ ココで、サイトから「pubkey for tags verification 」 の暗号化された文字をコピペ。(--- 線も必要) ・・・ ・・・ Public keys stored in C:/Users/***/AppData/Roaming/Composer ・・・ こうなれば成功。
C:\symfony > php composer.phar self-update --update-keys ・・・ 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