npm should be installed with Node.js. However, use the following steps to ensure you have the latest version of npm and that it was installed correctly.
-
Open a command prompt, and run the command npm -v.
-
Run the following command to ensure that you have the latest version of npm: npm install -g npm.