Before starting: Make sure you have the necessary folders and permissions — get more information.
Install Yarn globally using NPM.
npm install --global yarn
Verify the Installation
Verify that you have successfully installed Yarn.
Update (if required)
Update your Yarn installation.
npm update --global yarn