nvm is a node version manager, which allows you to run multiple versions of node.js
To install nvm, run
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
To list all available node versions, run
nvm ls-remote
To install a particular node.js version, run
nvm install 8.9.4
To activate/select a node.js version, use
nvm use 8.9.4