Update npm

Node comes with npm installed.

First thing is to update npm:

[sudo] npm install npm@latest -g

or

npm install npm -g

Manage packages

List all the packages

npm ls

Install locally

npm install <package_name>

Install globally

npm install <package_name> -g......