i

Node.js - Environment Setup

For installing Node.js, you can visit https://nodejs.org/en/.

­In the picture mentioned above, we have two versions

V12.13.1 LTS

Which is the latest stable version and the recommended one.

V13.3.0 Current
Which is the latest version.

We are using Windows operating system here. You can choose the Node.js version, depending on your operating system and configurations.

Once downloaded, use
node –v

to your command line to check the installed node version.

Installation in Linux and MAC?

Based on your OS architecture, download and extract the archive node-v12.13.1-osname.tar.gz into /tmp, and then finally move extracted files into /usr/local/nodejs directory.

$ cd /tmp

$ wget http://nodejs.org/dist/v12.13.1-linux-x64.tar.gz

$ tar xvfz node-v12.13.1-linux-x64.tar.gz

$ mkdir -p /usr/local/nodejs

$ mv node-v12.13.1-linux-x64/* /usr/local/nodejs

Make sure to add /usr/local/nodejs/bin to the PATH environment variable.

Using

$ export Path==$ PATH:/usr/local/nodejs/bin