Configure npm to use exact module version and save change to package.json

When you are using NPM it is important to make sure that you install an exact version of a package/module you are using. Not doing so may lead to headaches when the developers maintaining the module make an update with breaking changes, but do not tag the version correctly.

To do so, simply run  npm config set save-exact true

It is that simple. you can also configure NPM to always save any changes to your package.json file.

To do so run: npm config set save-exact true