Files
tldr/pages/common/npm-shrinkwrap.md
Managor d185054494 npm-{adduser, star, stars, unstar shrinkwrap}: update more info link for legacy subcommands (#23704)
* Update npm-adduser.md

* Update npm-star.md

* Update npm-stars.md

* Update npm-unstar.md

* Update npm-shrinkwrap.md
2026-08-31 01:02:28 -07:00

512 B

npm shrinkwrap

Lock down the dependencies of a package, creating a npm-shrinkwrap.json file. Similar to package-lock.json but intended for published packages. More information: https://docs.npmjs.com/cli/v11/npm-shrinkwrap.

  • Generate a npm-shrinkwrap.json file from the current package-lock.json:

npm shrinkwrap

  • Run in production mode (excludes devDependencies):

npm shrinkwrap --production

  • Force recreate the shrinkwrap file even if it already exists:

npm shrinkwrap --force