[Docker] dokcer-compose run, Please run `yarn install –check-files` to update. Error

Introduction

I got an error when building the Docker environment, so I will leave the solution as a memo in the article.

Environment in Docker

ruby 2.6.3-alpine3.10 rails 6.0.1

Event

When I ran dokcer-compose run, I got the following error code.

Error code

Please run `yarn install –check-files` to update.

Workaround

Add the following yarn configuration code to config/environment/development.rb

config.webpacker.check_yarn_integrity = false

I think that can be solved by the above.

Recommended Posts

[Docker] dokcer-compose run, Please run `yarn install –check-files` to update. Error
Please run `yarn install --check-files` to update.
How to install Docker
Install yarn in docker image
[Ruby on Rails] yarn install --check-files
Steps to run docker on Mac
How to run JavaFX on Docker
Update MySQL from 5.7 to 8.0 with Docker
Challenge to install WSL2 and docker
Run Embulk on Docker to convert files
Docker container build fails to install php-radis
How to run Blazor (C #) with Docker