In order to follow this book, you need to have some minimal experience using the terminal to run a few Unix commands. Also, you need to install Node.js. You have two options. The first one is to download Node.js directly from the official website, https://nodejs.org, and the second option (recommended) is to install Node Version Manager (NVM) from https://github.com/nvm-sh/nvm.
If you decide to go with NVM, you can install any version of Node.js you want and switch the versions with the nvm install command:
# "node" is an alias for the latest version:
nvm install node
# You can also install a global version of node (will install the latest from that version):
nvm install 10
nvm install 9
nvm install 8
nvm install 7
nvm install 6
# Or you can install a very specific version:
nvm install 6.14.3
After you have installed the different versions, you can switch them by using the nvm use command:
nvm use node # for latest version
nvm use 10
nvm use 6.14.3
Finally, you can specify a default node version by running the following command:
nvm alias default node
nvm alias default 10
nvm alias default 6.14.3
In short, here is a list of the requirements to complete the chapter:
- Node.js (12+): https://nodejs.org
- NVM: https://github.com/nvm-sh/nvm
- VS Code: https://code.visualstudio.com
- TypeScript: https://www.npmjs.com/package/typescript
You can find the code for this chapter in the book's GitHub repository: https://github.com/PacktPublishing/React-17-Design-Patterns-and-Best-Practices-Third-Edition.