Categories
JavaScript Answers

How to install the exact package version specified in package.json with Node.js npm install?

Spread the love

To install the exact package version specified in package.json with Node.js npm install, we use the --save-exact option.

For instance, we run

npm install --save --save-exact react

to install the exact version of the react package listed in package.json with --save-exact.

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 *