在Ubuntu上安装NodeJS

sudo apt-get update  
sudo apt-get install build-essential libssl-dev curl -y
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs