npm shrinkwrap
Lock down the dependencies of a package, creating an
npm-shrinkwrap.jsonfile. Similar topackage-lock.jsonbut intended for published packages. More information: https://docs.npmjs.com/cli/v11/npm-shrinkwrap.
- Generate an
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
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
