Update NPM to latest version

Actually, I do not have many opportunities to work with NodeJS. However, sometimes, I have to deploy some applications that request to install some npm packets. So easy with “npm install”. But what you think if npm command get errors? I think that it is time you need to upgrade NPM to the latest version.

It is really simple with commands bellow:

Update Node to latest version:

Finally, link node executed file to /usr/bin/node: