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