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
.