Node Installation on Ubuntu

3 min read
Last updated at: Jul 27 2021

Developers Installation Prerequisite

You can install node in two ways:

Installation of node using ppa

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

$ sudo apt-get install -y nodejs

$ sudo apt-get install -y build-essential (optional)

 

Installation of node using nvm(node version manager)

curl -sL https://raw.githubusercontent.com/creationix/nvm/v0.35.3/install.sh -o install_nvm.sh

nano install_nvm.sh

bash install_nvm.sh

source ~/.profile

nvm ls-remote

nvm install your-version

nvm use your-version

node -v