Nodejs can be installed by compiling source code and making an executable or by downloading a pre-built installer for your platform.
To download Nodejs visit the official NodeJs website download section and select the Long term support LTS version which is recommended for most of the users.
1. Choose an Operating System platform
The windows OS platform has been chosen for installation.
2. Double click click the installer and run the installation wizard
3. Accept the license agreement
4. Click on Install
5. Nodejs installation on progress
6. Click on Finish to complete NodeJS Installation
After completion of NodeJS installation, NodeJS executable has been added to the PATH environment variable which can be invoked from the command prompt as shown below
Some details on Installing NodeJS in the different platforms using the package managers are shown below.
Nodejs in Android
Installing Node.js in android is still experimental as precompiled binaries are not yet supported. There are third-party solutions such as Termux is available.
So to install Node.js you need to have the Termux app installed on your android phone.
Once the Termux has installed open the Termux application and you will see the application interface as shown below.
You can run basics commands in the Termex shell which are given below.
To install Node.js using Termux use the command shown below.
pkg install nodejs
Once the NodeJS is installed you can verify by calling
node interpreter in the Termux shell.
For more detail installation on various platform visit this official NodeJS installation documentation