Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix Yarn packages are out of date in terminal

I am always after being installed yarn.

=> Booting Puma
=> Rails 6.0.0.rc2 application starting in development 
=> Run `rails server --help` for more startup options
Usage: yarn [options]

yarn: error: no such option: --integrity


========================================
  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).
like image 530
Jack Van Avatar asked Jul 29 '19 16:07

Jack Van


2 Answers

Check your yarn version using yarn --version. If the version is less than 1.21.1 Update using curl --compressed -o- -L https://yarnpkg.com/install.sh | bash. The run yarn install on projects root

like image 128
okoth kongo Avatar answered Oct 20 '22 00:10

okoth kongo


Try:

  • Updating node and yarn
  • Deleting node_modules directory and running yarn install again
like image 41
lunr Avatar answered Oct 19 '22 23:10

lunr