Skip to content

Instantly share code, notes, and snippets.

@sstadelman
Created June 29, 2015 22:13
Show Gist options
  • Save sstadelman/130a3e13cc39c478e8c0 to your computer and use it in GitHub Desktop.
Save sstadelman/130a3e13cc39c478e8c0 to your computer and use it in GitHub Desktop.
Switch to older version of node, and to current
# Switch to older version (e.g.: v0.10.39)
sudo n 0.10.39
# install : node-v0.10.39
# mkdir : /usr/local/n/versions/node/0.10.39
# fetch : https://nodejs.org/dist/v0.10.39/node-v0.10.39-darwin-x64.tar.gz
# installed : v0.10.39
# Switch to current version
sudo n stable
# install : node-v0.12.5
# mkdir : /usr/local/n/versions/node/0.12.5
# fetch : https://nodejs.org/dist/v0.12.5/node-v0.12.5-darwin-x64.tar.gz
# installed : v0.12.5
node -v
# v0.12.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment