Search⌘ K
AI Features

External Environment Setup

Explore setting up the external development environment by installing Node.js version 16 with nvm and scaffolding a TypeScript React application using create-react-app. Understand how to clean up boilerplate files to start with a minimal, ready-to-code project setup.

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:

Shell
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash

Optionally, we can use this command:

Shell
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 ~/.bashrc ...