mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-09-17 17:17:40 +08:00
505 B
505 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/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