npm-shrinkwrap.1 999 B

1234567891011121314151617181920212223242526272829303132
  1. .TH "NPM-SHRINKWRAP" "1" "March 2026" "NPM@11.12.0" ""
  2. .SH "NAME"
  3. \fBnpm-shrinkwrap\fR - Lock down dependency versions for publication
  4. .SS "Synopsis"
  5. .P
  6. .RS 2
  7. .nf
  8. npm shrinkwrap
  9. .fi
  10. .RE
  11. .P
  12. Note: This command is unaware of workspaces.
  13. .SS "Description"
  14. .P
  15. This command repurposes \fBpackage-lock.json\fR into a publishable \fBnpm-shrinkwrap.json\fR or simply creates a new one. The file created and updated by this command will then take precedence over any other existing or future \fBpackage-lock.json\fR files. For a detailed explanation of the design and purpose of package locks in npm, see npm help package-lock-json.
  16. .SS "See Also"
  17. .RS 0
  18. .IP \(bu 4
  19. npm help install
  20. .IP \(bu 4
  21. npm help run
  22. .IP \(bu 4
  23. npm help scripts
  24. .IP \(bu 4
  25. \fBpackage.json\fR \fI\(la/configuring-npm/package-json\(ra\fR
  26. .IP \(bu 4
  27. \fBpackage-lock.json\fR \fI\(la/configuring-npm/package-lock-json\(ra\fR
  28. .IP \(bu 4
  29. \fBnpm-shrinkwrap.json\fR \fI\(la/configuring-npm/npm-shrinkwrap-json\(ra\fR
  30. .IP \(bu 4
  31. npm help ls
  32. .RE 0