In this video, I am going to show you how to Install nodejs,npm and change nodejs version dynamically in linux using terminal. Commands to install nodejs,npm and nvm sudo apt-get update INSTALL NODEJS sudo apt-get install nodejs INSTALL NPM sudo apt-get install npm CHECK VERSION node -v npm -v INSTALL CURL sudo apt-get install curl INSTALL NVM BY FOLLOWING COMMANDS curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash (OR) wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash INSTALL NODE USING NVM nvm install node To install a specific “node” version, first list the available node versions and then install the version as shown. nvm ls-remote nvm install 10.15.3 You can check all installed version with the following command: nvm ls You can use a node.js version in any new shell as shown: # nvm use node #use default OR # nvm use 10.15.3 Like & Subcribe Thank you
In this video, I am going to show you how to Install nodejs,npm and change nodejs version dynamically in linux using terminal. Commands to install nodejs,npm and nvm sudo apt-get update INSTALL NODEJS sudo apt-get install nodejs INSTALL NPM sudo apt-get install npm CHECK VERSION node -v npm -v INSTALL CURL sudo apt-get install curl INSTALL NVM BY FOLLOWING COMMANDS curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash (OR) wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash INSTALL NODE USING NVM nvm install node To install a specific “node” version, first list the available node versions and then install the version as shown. nvm ls-remote nvm install 10.15.3 You can check all installed version with the following command: nvm ls You can use a node.js version in any new shell as shown: # nvm use node #use default OR # nvm use 10.15.3 Like & Subcribe Thank you