1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【Rails】Your Yarn packages are out of date! Please run `yarn install --check-files` to update.と怒られた

Posted at

はじめに

Railsでの環境構築中に起きたエラーを備忘録として残します。

解決方法

サーバーを立ち上げるとyarnがインストールされていないですのような以下のエラーが発生

ターミナル
$ rails s

=> Booting Puma
=> Rails 6.0.3.2 application starting in development
=> Run `rails server --help` for more startup options
error Couldn't find an integrity file
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 install --check-files


しかし、解決できず。。。

そこで以下のコマンドで、yarnのインストールではなく
アップグレードしてあげることで解消することができました!

ターミナル
$ yarn upgrade

同じ境遇の方はぜひ試してみてください。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?