Skip to content

Instantly share code, notes, and snippets.

@lorinma
Created May 29, 2016 18:16
Show Gist options
  • Save lorinma/7b0faab0543d74e5076794256811e4ff to your computer and use it in GitHub Desktop.
Save lorinma/7b0faab0543d74e5076794256811e4ff to your computer and use it in GitHub Desktop.
nodejs
If you have nodejs already installed and want to update, then first remove current instalation and install it again using scripts above.
sudo apt-get remove --purge nodejs npm
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
sudo apt-get install -y nodejs
@lorinma
Copy link
Author

lorinma commented May 29, 2016

on cloud9 just use nvm:

nvm install 6.2.0

this will install node 6.2.0

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