LoginSignup
0
0

More than 3 years have passed since last update.

composerの調子が悪かったがなんとか解決

Last updated at Posted at 2020-06-25

Debugbarをインストールしようとしたんですがプロンプトが途中で止まって返ってこなくなりました。

$ composer require barryvdh/laravel-debugbar --dev

問題

調子が悪い時は以下のコマンドでどこが悪いかを調べるそうです。

$ composer diagnose

しかし、私の場合以下の場所でフリーズしました。

$ composer diagnose
composer diagnoseChecking composer.json: OK
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist:

対策

$ composer self-update --preview
$ composer update -v
$ composer diagnose

Debugbarの設定の続き

やっとインストールできたので設定を追記して動作確認

config/app.php
    'providers' => [
+       Barryvdh\Debugbar\ServiceProvider::class,
    ],

    'aliases' => [
+       'Debugbar' => Barryvdh\Debugbar\Facade::class,
    ]

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0