Installing Node.js 14 with nvm
This book will be using Node.js 14 throughout, as it is the latest LTS release at the time of writing. Node.js 14 was released in April 2020, was promoted to LTS in October 2020 and will continue to be supported until April 2023. This recipe will cover how to install Node.js 14 using node version manager (nvm). At the time of writing, nvm
is an incubation project of the OpenJS Foundation and provides an easy way to install and update Node.js versions.
Getting ready
You will need to have the appropriate permissions on your device to install nvm
. This recipe assumes you're on a UNIX-like platform. If you're on Windows, it should be run under Windows Subsystem for Linux (WSL).
How to do it…
In this recipe, we're going to be installing Node.js 14 using nvm
:
- First, we need to install
nvm
.nvm
provides a script that handles the download and installation ofnvm
. Enter the following command in your Terminal to execute...