I just learned that using npm i
will not update packages to the version specified in the package.json if they are already installed. Is there a way to force an update for all modules to match the version specified in package.json?
For reference, here is how I'm calling to install from the code currently:
var Proc = child_process.execSync ('npm i', {
cwd: cwd
});