Skip to content

Instantly share code, notes, and snippets.

@vietlq
Last active May 10, 2017 15:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vietlq/cf1903e778bbd76a80f46823b19f8f49 to your computer and use it in GitHub Desktop.
Save vietlq/cf1903e778bbd76a80f46823b19f8f49 to your computer and use it in GitHub Desktop.
How to install Node 6.x on Ubuntu 14 & Ubuntu 16

Code2Pro: How to install Node 6.x on Ubuntu 14 & Ubuntu 16

Scope

Tested on Ubuntu 14, Ubuntu 16 and Windows 10 WSL.

Steps

  1. Purge the old version of nodejs & npm
  2. Set up PPA and update
  3. Install the nodejs
# Using Ubuntu
sudo apt-get purge nodejs npm

curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs

# Using Debian, as root
apt-get purge nodejs npm

curl -sL https://deb.nodesource.com/setup_6.x | bash -
apt-get install -y nodejs

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment