Node Js

Install Node Js From Source Code.

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. Please view the link for Details Step. Click Here to Install Nodes Js From Binary

2. Installation from Ubuntu Packages. To install Node Js from Ubuntu Packages click here

3. Installation from Source Code.

Step 1: Update your apt repository

Step 2: Install build essentials
  • Step 3: Change to the src directory

Step 4: Make a node directory in your src folder

Step 5: Enter the node directory

Step 6: Copy the Linux Binary from the Node.js download page and use wget to download the package. Make sure to replace the Node JS version with node’s current version

Step 7: Extract the tar file

Step 8: Now that our source code has been extracted, move to the node directory where the Node JS version is the current version you downloaded

  • Note: This folder contains raw files that need to be compiled specifically for your particular architecture and kernel. Most source code packages like this come with a bash script called “configure” that will create all these files and set the options for you.
Step 8: Run the configure script

Note: If you don’t receive any errors or warnings, the configure script ran successfully.

Step 9: Compile the code

  • make will begin compiling the code. This will take 5-10 minutes or even longer depending on your server resources.
Step 10: Now that make is compiled, install it

Step 11: Check the Node.js and npm version

If you see the versions displayed for node and npm, you have successfully compiled Node.js with npm from source. You can now begin installing node modules through npm

Facebook Comments