npm 命令行接口 (CLI) 定期发布。我们建议安装支持你的工作流程的版本:

The npm command line interface (CLI) is released on a regular cadence. We recommend installing the release that supports your workflow:

npm 的 latest 版本

The latest release of npm

npm 的 latest 版本是最新的稳定版本。安装 Node.js 时,会自动安装 npm。但是,npm 的发布频率比 Node.js 高,因此要安装最新的稳定版 npm,请在命令行上运行:

The latest release of npm is the most recent stable version. When you install Node.js, npm is automatically installed. However, npm is released more frequently than Node.js, so to install the latest stable version of npm, on the command line, run:

npm install npm@latest -g
npm 中文网 - 粤ICP备13048890号