Install npm

Learn how to install npm on your computer.

The Short Version

  1. Go to https://nodejs.org/en/
  2. Download and install the version named “12.6.3 LTS“.

The Details

npm doesn’t come in a stand-alone package, so you will need to install NodeJS to get npm. Follow these steps:

  1. Go to https://nodejs.org/en/
  2. Download and install the version named “12.6.3 LTS”. LTS stands for Long Term Support, and that is what most developers will want to use. The latest version as of the writing of this article was 12.6.3, but it may be a different number for you.
  3. Open a command shell.
  4. Confirm that npm is installed by running this command:
npm -v

If npm is installed correctly, the output should be the version number, for example:

12.6.3