Webpacker configuration file not found

エラー内容

bin/rails s した際に発生するエラー。

/Users/kazuma/.ghq/github.com/inamuu/rails_sample_app/asagao/vendor/bundler/ruby/2.6.0/gems/webpacker-4.3.0/lib/webpacker/configuration.rb:95:in `rescue in load': Webpacker configuration file not found /Users/kazuma/.ghq/github.com/inamuu/rails_sample_app/asagao/config/webpacker.yml. Please run rails webpacker:install Error: No such file or directory @ rb_sysopen - /Users/kazuma/.ghq/github.com/inamuu/rails_sample_app/asagao/config/webpacker.yml (RuntimeError)

対処方法

webpackをインストールする。この際にnodeのエラーが出ることがあるので、その場合はこちらを参照してnodeをアップデートする。

bin/rails webpacker:install