0
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 データベース作成時に出たエラー

Posted at

エラー

========================================
  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.10
success Folder in sync.
Done in 0.10s.
yarn check v1.22.10
error "vue-loader#@vue/component-compiler-utils#lru-cache#yallist" is wrong version: expected "^2.1.2", got "3.1.1"
error Found 1 errors.
info Visit https://yarnpkg.com/en/docs/cli/check for documentation about this command.

エラーの解決

エラー文の以下の内容から、yarn.lock (Gemfile.lockの様なもの) の内容と別のバージョンが入っている可能性があったので、一旦インストール済みのものを全て削除して再インストールして整合性を取る。つまり、node_modules ディレクトリを削除してから yarn install を実行する。

error "vue-loader#@vue/component-compiler-utils#lru-cache#yallist" is wrong version: expected "^2.1.2", got "3.1.1"

node_modules ディレクトリ削除のコマンド

rm -r node_modules

0
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
0
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?