mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-09-17 17:17:40 +08:00
* Update npm-adduser.md * Update npm-star.md * Update npm-stars.md * Update npm-unstar.md * Update npm-shrinkwrap.md
512 B
512 B
npm shrinkwrap
Lock down the dependencies of a package, creating a
npm-shrinkwrap.jsonfile. Similar topackage-lock.jsonbut intended for published packages. More information: https://docs.npmjs.com/cli/v11/npm-shrinkwrap.
- Generate a
npm-shrinkwrap.jsonfile from the currentpackage-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