External Environment Setup
Set up an environment with nvm, and install a specific version of Node.
Environmental Setup
If you are interested in running this course’s code in an external environment, like in Visual Studio Code, this lesson explains what tools are used to test and run all the code in this course.
Node version![]()
We’re going to use Node version 16, since that’s the new, long-term support (LTS) version of Node as of June 2022.
Install nvm
We can use nvm
to maintain a variety of node versions on a single machine. To install nvm, let’s open a terminal and issue the following command:
Press + to interact
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
Optionally, we can use this command:
Press + to interact
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
After installing, be sure to check your ~/.bash_profile
, ~/.zshrc
, ~/.profile
, or ...