How to install Node, Yarn, Git and VSCode on Linux, Mac and Windows

On Linux (Ubuntu 20.04 LTS):

Node

source .bashrcnode -v
# v14.17.0
npm -v
# 6.14.13
sudo apt install gcc g++ make
# You need to install curl if it's not already installed
sudo apt install curl

# Ubuntu
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt-get install -y nodejs

Yarn

npm install -g yarn

yarn -v
# 1.22.10

Git

sudo apt install git

VSCode

sudo dpkg -i code_1.57.0-1623259737_amd64.deb

# test it
code .

On Mac

Node

node -vnpm -v

Yarn

npm install -g yarnyarn -v
sudo chown -R $USER /usr/local/lib/node_modules 
sudo chown -R $USER /usr/local/bin
sudo chown -R $USER /usr/local/share/

Git

brew install git

VSCode

On Windows

Node

node -vnpm -v

Yarn

npm install -g yarnyarn -v

Git

C:\Users\user>git --version
git version 2.32.0.windows.1

VSCode

git clone https://github.com/alexadam/project-templates.gitcd projects\react-appyarn init --yesyarn add react react-domyarn add --dev @types/react @types/react-dom ts-loader css-loader html-webpack-plugin node-sass sass-loader style-loader typescript webpack webpack-cli webpack-dev-server# Open VSCode
code .
,"scripts": {
"clean": "rm -rf dist/*",
"build": "webpack",
"dev": "webpack serve"
}