LoginSignup
2
1

More than 3 years have passed since last update.

rails server時にcannot load such file -- bootsnap/setup (LoadError)と表示され、起動しない場合の対処法

Posted at

はじめに

railsチュートリアルをローカル環境でやってみようとしたら、サーバーが立ち上がらずハマったので解決策を投稿

環境

rails 5.2.3

エラーメッセージ

ruby
cannot load such file -- bootsnap/setup (LoadError)

原因

bootsnapがインストールされていない

対処

Gemfile
gem 'bootsnap', '>= 1.1.0', require: false

を書き足してbundle installを実行

2
1
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
2
1