nakauの技術ブログ 〜プログラミングを学ぶ〜

Ruby/Ruby on Rails/Javascript/jQuery/GitHub/AWS/Windows/Windowsバッチファイル/Powershell

rails - エラー解決:"Your Yarn packages are out of date!"

はじめに

今回はエラー解決についての記事です。
記事作成用に新規アプリケーションを立ち上げ、いつも通り "rails s" をしたら……

エラー画面

=> Booting Puma
=> Rails 6.0.3.2 application starting in development 
=> Run `rails server --help` for more startup options
warning Integrity check: Top level patterns don't match                                                                                                                                 
error Integrity check failed                                                                                                                                                            
error Found 1 errors.                                                                                                                                                                   


========================================
  Your Yarn packages are out of date!
  Please run `yarn install --check-files` to update.
========================================


To disable this check, please change `check_yarn_integrity`
to `false` in your webpacker config file (config/webpacker.yml).


yarn check v1.22.4
info Visit https://yarnpkg.com/en/docs/cli/check for documentation about this command.


Exiting

解決方法

どうやら yarnのバージョンを確認してほしいらしい
以下のコマンドを実行し、yarnでバージョンアップを実施

$ yarn upgrade

アップグレード完了後、サーバー起動 f:id:nakau_tech:20200827224356p:plain

最後に

そして世界に平和が訪れたのであった。(実装がんばります)