"packageManager"


稳定性: 1 - 实验

{
  "packageManager": "<package manager name>@<version>"
}

"packageManager" 字段定义了在处理当前项目时预期使用的包管理器。 它可以设置为任何支持的包管理器,并且将确保您的团队使用完全相同的包管理器版本,而无需安装除 Node.js 以外的任何其他东西。

该领域目前处于试验阶段,需要选择加入;有关该过程的详细信息,请查看 Corepack 页面。

Stability: 1 - Experimental

{
  "packageManager": "<package manager name>@<version>"
}

The "packageManager" field defines which package manager is expected to be used when working on the current project. It can be set to any of the supported package managers, and will ensure that your teams use the exact same package manager versions without having to install anything else other than Node.js.

This field is currently experimental and needs to be opted-in; check the Corepack page for details about the procedure.