sudo apt install curl
curl -sL https://deb.nodesource.com/setup_8.x | sudo bash -
sudo apt install nodejs
node --version
npm version
See Details How to install Node.js and npm LTS on Ubuntu 17.04, Linux Mint 18.2
sudo apt install curl
curl -sL https://deb.nodesource.com/setup_8.x | sudo bash -
sudo apt install nodejs
node --version
npm version
See Details How to install Node.js and npm LTS on Ubuntu 17.04, Linux Mint 18.2