"packageManager"


稳定性: 1 - 实验性的

¥Stability: 1 - Experimental

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

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

¥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.

该字段目前处于试验阶段,需要选择加入;检查 Corepack 页面以了解有关该过程的详细信息。

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

Node.js 中文网 - 粤ICP备13048890号