npm installlatest dependency treenpm shrinkwrapto generate initialnpmshrinkwrap.jsonfile- In
npmshrinkwrap.jsonfind all occurances of"noflo"and replace the contents with e.g.
// ...
"noflo": {
"version": "0.8.0-beta3",
"from": "[email protected]",
"resolved": "https://registry.npmjs.org/noflo/-/noflo-0.8.0-beta3.tgz"
// ...npm installagain, which will usenpmshrinkwrap.jsoninstead ofpackage.json
Say noflo has released a new version and you need to update it in your shrinkwrapped project.
npm updateto update frompackage.jsonrather thannpmshrinkwrap.json(optional)npm pruneto remove "extraneous" packagesnpm shrinkwrapto generate a newnpmshrinkwrap.json- Edit
npmshrinkwrap.jsonagain like you did in step 3 in previous section npm installbased on shrinkwrapped tree