install node js ubuntu
sudo apt-get install curl curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash - sudo apt-get install nodejs # Check node version node -v # v13.9.0 # Also, check the npm version npm -v # 6.13.7
ubuntu install node js
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - sudo apt install nodejs sudo apt install npm sudo apt update
node install ubuntu
# Through nodesource curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - sudo apt install nodejs
node ubutun
sudo chmod +x /usr/local/bin/n
Source: doc.ubuntu-fr.org
installing node in ubuntu
# To Check the node version node -v # Installing specific version ===> change setup_16.x to setup_14.x or any other. curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash - sudo apt-get install -y nodejs # If error like this occurs. Errors were encountered while processing: /var/cache/apt/archives/nodejs_16.16.0-deb-1nodesource1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) #Solution:( replace nodejs_12.20.0 ==> the version you want to install) sudo dpkg -i --force-overwrite /var/cache/apt/archives/nodejs_12.20.0-deb-1nodesource1_amd64.deb sudo apt -f install