How to install Nodejs Ubuntu

Step1: Install the PPA(Personal Package Archive)

For node 14.x,

#curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -

For node 12.x,

#curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -

Step2: Install Nodejs

#apt-get install nodejs

Step3: Install npm dependencies

#apt-get install build-essential

That's all…..

Leave a Reply

Your email address will not be published. Required fields are marked *