Good news; you already have NPM installed if you have gone through the process of installing Node. You may occasionally want to upgrade NPM outside Node's release cycle. To attempt an upgrade, simply open your operating system's preferred console or Terminal window and execute the following command:
>npm install -g npm
NPM is just another executable on your computer. It takes a list of arguments or parameters. In this case, we are asking NPM to install a package. The second argument, -g, tells NPM that we want to install the requested package globally. Lastly, the package we are asking NPM to install is NPM.