how do you install node js code example
Example 1: nodejs install
curl -O https://nodejs.org/dist/v14.16.1/node-v14.16.1-linux-x64.tar.gz
tar -xvzf node-v14.16.1-linux-x64.tar.gz --strip-components=1
export PATH=$HOME/node/bin:$PATH
echo 'export PATH=$HOME/node/bin:$PATH' >> ~/.bashrc
Example 2: install node js command
mkdir node
cd node
curl -O https://nodejs.org/dist/v10.15.3/node-v10.15.3-linux-x64.tar.gz
tar -xvzf node-v10.15.3-linux-x64.tar.gz --strip-components=1
export PATH=$HOME/node/bin:$PATH
echo 'export PATH=$HOME/node/bin:$PATH' >> ~/.bashrc