尝试最新稳定版 npm
See Details
目录
查看正在运行的 npm 版本
¥See what version of npm you're running
npm -v
在 *nix
上升级(OSX、Linux 等)
¥Upgrading on *nix
(OSX, Linux, etc.)
( 你可能需要在这些命令前加上 sudo
,特别是在 Linux 或 OS X 上,如果你使用默认安装程序安装 Node。)
¥*(You may need to prefix these commands with sudo
, especially on Linux, or OS X if you installed Node using its default installer.)*
你可以使用以下命令升级到最新版本的 npm:
¥You can upgrade to the latest version of npm using:
npm install -g npm@latest
在 Windows 上升级
¥Upgrading on Windows