Node.js 8:
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
Node.js 9:
curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -