how to install nodejs from source1 min read

Prabhin Prabharkaran Administrator
DevOps Engineer

He is a Technical professional. He is a person who loves to share tricks and tips on the Internet. He Posts what he does!

follow me

Hi All, This document shows you how to install nodejs from the source.
Node.js is an open-source, cross-platform, back end, JavaScript runtime environment that executes JavaScript code outside a web browser

Step 1: Download your respective node version from the below link

https://nodejs.org/en/blog/release/

Im downloading 8.11.3 as there is my source code compatibility issue with other latest version.

wget https://nodejs.org/dist/v8.11.3/node-v8.11.3.tar.gz

Make sure that you download the source code one.

Step 2: Extract the downloaded package

tar -xvzf node-v8.11.3.tar.gz

Step 3: Compile the source code

cd node-v8.11.3

./configure

Step 4: install the package

make

This is gonna be long process, be patience

make install

Once all completed, check the version.

node -v
npm -v

© 2020, Techrunnr. All rights reserved.

#1
#2
#3
Questions Answered
Articles Written
Overall Points

Related posts

Leave a Reply