Note for Linux users: before going further, run which curl
in the terminal. If it shows something (e.g. /usr/bin/curl
), you're good! Otherwise, run sudo apt install -y curl
(Ubuntu/Debian) to install cURL.
Note for zsh users (Linux or MacOS): in the following installation instructions, replace bash
with zsh
on the 1st line, and ~/.bashrc
with ~/.zshrc
on the 2nd.
You are going to use NVM (Node Version Manager). Here's a summary of what you have to do (see installation instructions on the NVM repo for more details). Run these commands in your terminal.
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
source ~/.bashrc
nvm install v10.16.3
nvm use v10.16.3
You can verify that it worked by running node -v
, which should display:
v10.16.3
The original NVM doesn't support Windows. You're going to use NVM for Windows. Get to the releases page. Under the latest version (1.1.7 as of September 2019), download the nvm-setup.zip
file (or use this direct link).
Extract the archive, and run nvm-setup.exe
. Complete the setup wizard. Then, quit Git Bash if it is running, re-launch it, and type:
nvm install v10.16.3
nvm use v10.16.3
Running node -v
should display: v10.16.3
.