First, download Node.JS installer according to target operation system from here
The installer downloaded should be executable on target operation system (e.g.
.msi on Window and
.pkg on MacOSX)
Follow the wizard and install Node.JS to target machine.
Once installation finished, open a
cmd. Installation should have both
npm commands exposed.
$ node --version
It is essential to have both commands running correctly.