Install Node JS From Binary

Install Node JS From Binary
Install Node JS From Binary
Install Node JS From Binary
Install Node JS From Binary
Install Node JS From Binary

Install Node JS From Binary

Node JS is required to run the UI of the Explorer and interact with coin to fetch the data and insert the same into Mongo DB.

There are three ways of installing Node JS

1. Binary Installation.

2. Installation from Source Code. To install Node JS from Source Code Click Here

3. Installation from Ubuntu Packages. To install Node JS from Ubuntu Packages click here

we are going to install Node JS from binary.

To install the Node JS from binary follow the below steps
step 1: Go to https://nodejs.org/en/download/  and copy latest Linux binary URL

https://nodejs.org/dist/v8.9.4/node-v8.9.4-linux-x64.tar.xz

step 2: Make a node directory in your src folder

sudo mkdir node

Step 3: Enter the node directory

cd node

step 4: Unzip and extract the binaries

sudo tar xvf node-v8.9.4-linux-x64.tar.xz –strip-components=1 -C ./node

step 4: Make an etc directory in your node folder

sudo mkdir node/etc

Step 5: execute the following command

sudo echo ‘prefix=/usr/local’ > node/etc/npmrc

sudo mv node /opt/

sudo chown -R root: /opt/node

step 6: Create a symbolic link for a node that points to the new directory

sudo ln -s /opt/node/bin/node /usr/local/bin/node

sudo ln -s /opt/node/bin/npm /usr/local/bin/npm

step 7: Check the Node.js version

node -v

  • If you see the versions displayed for a node, you have successfully installed Node.js.