npm install
latest dependency treenpm shrinkwrap
to generate initialnpmshrinkwrap.json
file- In
npmshrinkwrap.json
find all occurances of"noflo"
and replace the contents with e.g.
// ...
"noflo": {
"version": "0.8.0-beta3",
"from": "noflo@0.8.0-beta3",
"resolved": "https://registry.npmjs.org/noflo/-/noflo-0.8.0-beta3.tgz"
// ...
npm install
again, which will usenpmshrinkwrap.json
instead ofpackage.json
Say noflo
has released a new version and you need to update it in your shrinkwrapped project.
npm update
to update frompackage.json
rather thannpmshrinkwrap.json
(optional)npm prune
to remove "extraneous" packagesnpm shrinkwrap
to generate a newnpmshrinkwrap.json
- Edit
npmshrinkwrap.json
again like you did in step 3 in previous section npm install
based on shrinkwrapped tree