Open your favorite web browser, navigate to https://nodejs.org/download/release/v16.20.1 and download the Installer for the 64-bit version of Node.js (node-v16.20.1-win-x64.msi). Alternative you can use the ZIP-version (node-v16.20.1-win-x64.zip) for the installation.
Once the download is completed, open the installer to start the installation.
Fig. 1: Node.js Installer
After completion of the installer, open a command prompt (or PowerShell) and enter the following:
C:\> node -v
The system should display the Node.js version installed on your system.
C:\> node -v v16.20.1
Open a command prompt (or PowerShell), and enter the following:
C:\> npm install -g yarn
After completion of the installer, enter the following:
C:\> yarn -v
The system should display the YARN version installed on your system.
C:\> yarn -v v1.22.19