原文鏈接:https://www.runoob.com/nodejs/nodejs-install-setup.htmlhtml
一、安裝node
cd /usr/local/linux
wget https://nodejs.org/dist/v10.9.0/node-v10.9.0-linux-x64.tar.xz
tar xf node-v10.9.0-linux-x64.tar.xz npm
mv node-v10.9.0-linux-x64 node
cd node
spa
ln -s /usr/local/node/bin/npm /usr/bin/
ln -s /usr/local/node/bin/node /usr/bin/htm
二、驗證get
node -vejs
npm -vdi