docker-compose up
When I did, I got the following error.
web_1 | => Booting Puma
web_1 | => Rails 6.0.3.1 application starting in development
web_1 | => Run `rails server --help` for more startup options
web_1 | Usage: yarn [options]
web_1 |
web_1 | yarn: error: no such option: --integrity
web_1 |
web_1 |
web_1 | ========================================
web_1 | Your Yarn packages are out of date!
web_1 | Please run `yarn install --check-files` to update.
web_1 | ========================================
web_1 |
web_1 |
web_1 | To disable this check, please change `check_yarn_integrity`
web_1 | to `false` in your webpacker config file (config/webpacker.yml).
web_1 |
web_1 |
web_1 |
web_1 |
web_1 |
web_1 | Exiting
shitsumonwa_web_1 exited with code 1
No change from the above screen. .. .. Please run yarn install --check-files to update. Because there is
yarn install --check-files
And then try `` `docker-compose up``` again, the same error will be displayed.
web_1 | To disable this check, please change `check_yarn_integrity`
web_1 | to `false` in your webpacker config file (config/webpacker.yml).
Since there was the above description, I changed the contents of config / webpacker.yml
.
config/webpacker.yml
development:
<<: *default
compile: true
# Verifies that correct packages and versions are installed by inspecting package.json, yarn.lock, and node_modules
check_yarn_integrity: true
It was above, but I changed it.
config/webpacker.yml
development:
<<: *default
compile: true
# Verifies that correct packages and versions are installed by inspecting package.json, yarn.lock, and node_modules
#Change the following from true to false
check_yarn_integrity: false
It worked! !! !!
web_1 | => Booting Puma
web_1 | => Rails 6.0.3.1 application starting in development
web_1 | => Run `rails server --help` for more startup options
web_1 | Puma starting in single mode...
web_1 | * Version 4.3.5 (ruby 2.6.3-p62), codename: Mysterious Traveller
web_1 | * Min threads: 5, max threads: 5
web_1 | * Environment: development
web_1 | * Listening on tcp://0.0.0.0:3000
web_1 | Use Ctrl-C to stop
See article below
Docker-compose up is not possible due to yarn (Your Yarn packages are out of date!)
Recommended Posts