Skip to content

Instantly share code, notes, and snippets.

@arangates
Last active June 11, 2017 09:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arangates/64e66d1c5c9657786f7ca46957ab71eb to your computer and use it in GitHub Desktop.
Save arangates/64e66d1c5c9657786f7ca46957ab71eb to your computer and use it in GitHub Desktop.
Nodejs installation ubuntu
Node- V6 :
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
node -v
Node- V5 :
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
sudo apt-get install -y nodejs
node -v
Node- V4
:
curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
echo 'deb https://deb.nodesource.com/node_4.x trusty main' > /etc/apt/sources.list.d/nodesource.list
echo 'deb-src https://deb.nodesource.com/node_4.x trusty main' >> /etc/apt/sources.list.d/nodesource.list
apt-get update
sudo apt-get install -y nodejs
node -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment