If you're using Linux or another operating system, use one of the following installers: Linux or other operating systems Node installers
Other versions have not yet been tested with npm. Be sure to install the version labeled LTS. If you're using OS X or Windows, use one of the installers from the Node.js download page. If you use Linux, we recommend that you use a NodeSource installer. If you are unable to use a Node version manager, you can use a Node installer to install both Node.js and npm on your system. Using a Node installer to install Node.js and npm Node version managers allow you to install and switch between multiple versions of Node.js and npm on your system so you can test your applications on multiple versions of npm to ensure they work for users on different versions. Npm -v Using a Node version manager to install Node.js and npm