npm-shrinkwrap command locks down the versions of a package’s dependencies so that you can control exactly which versions of each dependency will be used when your package is installed.

References

  • https://docs.npmjs.com/cli/shrinkwrap