Categories
JavaScript Answers

How to update each dependency in package.json to the latest version with Yarn and JavaScript?

Spread the love

To update each dependency in package.json to the latest version with Yarn and JavaScript, we run yarn upgrade.

For instance, we run

yarn upgrade <package-name> --latest

to upgrade the package with yarn upgrade to the latest version with the --latest flag.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *