Skip to content

Instantly share code, notes, and snippets.

@msporny
Created November 26, 2015 01:20
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save msporny/5019c4bed5415b745edd to your computer and use it in GitHub Desktop.
Save msporny/5019c4bed5415b745edd to your computer and use it in GitHub Desktop.
Script to install nodejs 0.10.40
curl -sL https://deb.nodesource.com/setup_0.10 | bash -
apt-get install -y nodejs=0.10.40-*
@mozeryansky
Copy link

I had to use sudo before bash -, and the nodejs version was a little later.

Use apt-cache policy nodejs to find the node in your source list and install the version you have. For me that was:
sudo apt-get install -y nodejs=0.10.48-*

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