docker-compose up
Als ich das tat, bekam ich den folgenden Fehler.
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
Keine Änderung gegenüber dem obigen Bildschirm. .. .. Please run yarn install --check-files to update. Weil es gibt
yarn install --check-files
Wenn Sie "Docker-Compose up" erneut ausführen, wird derselbe Fehler angezeigt.
web_1 | To disable this check, please change `check_yarn_integrity`
web_1 | to `false` in your webpacker config file (config/webpacker.yml).
Da es die obige Beschreibung gab, habe ich den Inhalt von `` `config / webpacker.yml``` geändert.
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
Es war oben, aber ich habe es geändert.
config/webpacker.yml
development:
<<: *default
compile: true
# Verifies that correct packages and versions are installed by inspecting package.json, yarn.lock, and node_modules
#Ändern Sie Folgendes von wahr in falsch
check_yarn_integrity: false
Es funktionierte! !! !!
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
Siehe Artikel unten
Docker-Compose-Up ist aufgrund von Garn nicht möglich (Ihre Garnpakete sind veraltet!)
Recommended Posts