The npm command line interface (CLI) is released on a regular cadence. We recommend installing the release that supports your workflow:
latestrelease of npm
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:
nextrelease of npm
nextrelease of npm may contain features that do not match the features ultimately released in the
lateststable version of npm.
next release of npm is the most recent unreleased version of npm that is eventually released as the
latest version. You may want to update your npm client to the
next release to test your packages against it before
latest is released.
To update to the
next release of npm, on the command line, run:
npm install [email protected] -gmay reinstall the
latestrelease of npm.