原文连接:https://www.runoob.com/nodejs/nodejs-install-setup.html
1、安装
cd /usr/local/
wget https://nodejs.org/dist/v13.5.0/node-v13.5.0-linux-x64.tar.xz
tar xf node-v13.5.0-linux-x64.tar.xz
mv node-v13.5.0-linux-x64 node
cd node
ln -s /usr/local/node/bin/npm /usr/bin/
ln -s /usr/local/node/bin/node /usr/bin/
2、验证
node -v
npm -v