Node.js Installing Node.js Installing Node.js with n


First, there is a really nice wrapper for setting up n on your system. Just run:

curl -L | bash

to install n. Then install binaries in a variety of ways:


n latest


n stable


n lts

Any other version

n <version>

e.g. n 4.4.7

If this version is already installed, this command will activate that version.

Switching versions

n by itself will produce a selection list of installed binaries. Use up and down to find the one you want and Enter to activate it.