LoginSignup
0
0

More than 1 year has passed since last update.

【Laravel】Debugbarのインストールでkillされる

Last updated at Posted at 2021-12-18

0. はじめに

こんにちは、@kazuma_devです。
Debugbarのインストールでkillされる際の対処法です。

0-1. 全体の流れ

1.エラー内容
補足
Reference

0-2. 本記事の対象者

  • Debugbarインストール

1. エラー内容

1-1. 前提・実現したいこと

  • Debugbarインストール

1-2. 発生している問題・エラーメッセージ

  1. Updating dependencies (including require-dev) killedされて、Debugbarがインストールできない
  2. Debugbarインストール後、表示されない

1-3. 該当のソースコード

zsh
~/laravel-sns/laradock $ COMPOSER_MEMORY_LIMIT=-1 composer require barryvdh/laravel-debugbar --dev
Updating dependencies (including require-dev)
Killed

1-4. 試したこと

  • .envファイルにDEBUGBAR_ENABLED=TRUEを追記
.env
DEBUGBAR_ENABLED=TRUE
  • DockerDesktopの設定Resourceにてメモリ容量変更
  • Memory:2GB→8GB
  • Swap:1GB→2GB

Screenshot 2021-12-18 17.19.07.png

  • Debugbarのインストール
zsh
~/laravel-sns/laradock $ COMPOSER_MEMORY_LIMIT=-1 composer require barryvdh/laravel-debugbar --dev
  • キャッシュクリア
zsh
docker-compose exec workspace php artisan cache:clear
zsh
docker-compose exec workspace php artisan config:cache
zsh
docker-compose exec workspace rm -f bootstrap/cache/config.php

補足

ツール バージョン
PHP 7.4.1
Laravel 6.20.43
PostgreSQL 13.5
Composer 2.0.14
Docker 20.10.11
docker-compose v2.2.1
MacBook Air M1,2020
macOS Monterey 12.3
Homebrew 3.3.8

Reference

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