Wednesday, June 1, 2022

How to fix Yarn packages are out of date in terminal

 =====================================

  Your Yarn packages are out of date!

  Please run 'yarn install --check-files' to update.

=====================================


1. Delete node_modules

$ rm -rf node_modules


2. Delete yarn.lock file

$ rm -rf yarn.lock


3. Install yarn

$ yarn install


4. Upgrade yarn

$ yarn upgrade


5. Run server

$ rails s

No comments:

Post a Comment