npm-shrinkwrap

锁定发布的依赖版本

选择命令行版本:

概要

🌐 Synopsis

npm shrinkwrap

注意:此命令不支持工作区。

🌐 Note: This command is unaware of workspaces.

描述

🌐 Description

这个命令将 package-lock.json 改造为可发布的 npm-shrinkwrap.json,或者干脆创建一个新的。这个命令创建和更新的文件将优先于任何其他现有或将来的 package-lock.json 文件。关于 npm 中包锁文件的设计和用途的详细解释,可以查看 package-lock-json。

🌐 This command repurposes package-lock.json into a publishable npm-shrinkwrap.json or simply creates a new one. The file created and updated by this command will then take precedence over any other existing or future package-lock.json files. For a detailed explanation of the design and purpose of package locks in npm, see package-lock-json.

也可以看看

🌐 See Also