
前提・実現したいこと
本日の作業中、composerの動作が遅く、ライブラリのインストールも全然進まないという状態に陥ってしまいました。
色々調べて解決策の中に composer diagnose を実行して調べてみるというものを見つけて試してみました。
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: 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
このような結果が返ってきたため、言われたとおりに composer self-update --update-keys to set them up を実行しました。
すると下記のようなエラーが返ってきたのですが、調べてみても同じ状況に陥っておられる方が見つからず(見つけることができず)対処に困っています。
発生している問題・エラーメッセージ
[Symfony\Component\Console\Exception\RuntimeException] Too many arguments, expected arguments "command" "version".
補足情報(FW/ツールのバージョンなど)
Composer version: 1.8.5
PHP version: 7.3.4
Laravel Framework 5.5.45
実行環境 homestead
追記
composer self-update --update-keys と入力し実行すればうまく動きました。
次にhttps://composer.github.io/pubkeys.htmlのDev / Snapshot Public Keyをコピーしてターミナルに張り付けてみたのですが、下記のように改行が含まれInvalid inputと返されてしまいます。
ちゃんと認識されるようにするにはどうすればよいのでしょうか?
vagrant@homestead:~/code$ composer self-update --update-keys Open https://composer.github.io/pubkeys.html to find the latest keys Enter Dev / Snapshot Public Key (including lines with -----): -----BEGIN PUBLIC KEY----- Enter Dev / Snapshot Public Key (including lines with -----): MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAnBDHjZS6e0ZMoK3xTD7f Invalid input Enter Dev / Snapshot Public Key (including lines with -----): Invalid input Enter Dev / Snapshot Public Key (including lines with -----): FNCzlXjX/Aie2dit8QXA03pSrOTbaMnxON3hUL47Lz3g1SC6YJEMVHr0zYq4elWi Invalid input Enter Dev / Snapshot Public Key (including lines with -----): Invalid input Enter Dev / Snapshot Public Key (including lines with -----): i3ecFEgzLcj+pZM5X6qWu2Ozz4vWx3JYo1/a/HYdOuW9e3lwS8VtS0AVJA+U8X0A Invalid input Enter Dev / Snapshot Public Key (including lines with -----): Invalid input Enter Dev / Snapshot Public Key (including lines with -----): hZnBmGpltHhO8hPKHgkJtkTUxCheTcbqn4wGHl8Z2SediDcPTLwqezWKUfrYzu1f Invalid input Enter Dev / Snapshot Public Key (including lines with -----): Invalid input Enter Dev / Snapshot Public Key (including lines with -----): o/j3WFwFs6GtK4wdYtiXr+yspBZHO3y1udf8eFFGcb2V3EaLOrtfur6XQVizjOuk

回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2019/05/12 00:31