Node Versioning

If you’d like to run multiple versions of node on your OS, here’s how you do it.

We’re going to install the package “n” to do this.

n (for *nix) vs nvm (Node Version Manager) [for Windows]

npm i -g n // on *nix

A command “n” will now be available.

sudo n latest // this will grab the latest version of node and install it

To change to a different node version, type “sudo n” and you’ll get a list from which to select. It couldn’t be simpler.

To install a specific version: sudo n 6.0 // would install node v6.0