Version
We currently encourage running the LTS version of Node.js.
Management
We encourage the use of NVM to manage multiple instances of Node.js. This tool is very similar to RVM.
You can install NVM a couple different ways.
- Using the official NVM installation script:
// https://github.com/nvm-sh/nvm#install--update-script
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
or
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
- Install via Homebrew(Preferred Way)
brew install nvm
Once installed you use it very similarly as RVM.
nvm install 10.16.0
nvm alias default 10.16.0
The last command will default any new shell to use Node 10.16.0 as the default Node version.