node.js - ThuyNT13/my_setup GitHub Wiki
Installing node.js
Install PPA for the current version (eg. 8.x), by adding the APT repository for Node.js Debian-based and the associated PGP key to the APT keychain:
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
Now install Node package
sudo apt-get install nodejs
Update NPM, which tends to be updated more frequently than Node:
sudo npm install npm@latest -g