📅  最后修改于: 2022-03-11 14:50:21.605000             🧑  作者: Mango
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