Answers for "install nodejs from binary"

0

install nodejs from binary

cd /tmp
wget https://nodejs.org/dist/v14.17.6/node-v14.17.6-linux-x64.tar.xz
sudo tar -xJvf node-v14.17.6-linux-x64.tar.xz
sudo mkdir /usr/local/lib/node
sudo mv node-v14.17.6-linux-x64 /usr/local/lib/node/nodejs
echo -e '\nexport NODEJS_HOME=/usr/local/lib/node/nodejs' >>  $HOME/.profile
#Refresh profile
. ~/.profile
#Check
npm -version && node -v
Posted by: Guest on September-03-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language