npm 的 latest 版本
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