npm-shrinkwrap

锁定发布的依赖版本

选择 CLI 版本:

概要

¥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

npm 中文网 - 粤ICP备13048890号