To install chocolatey yarn:
First of all
Download the installer
This will give you a .msi file that when run will walk you through installing Yarn on Windows.
If you use the installer you will first need to install Node.js.
https://classic.yarnpkg.com/lang/en/docs/install/#windows-stable
And, then go for choco install
Powershell:
Copy and Paste the code below to your PowerShell
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
OR Window CMD.exe:
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
After installation: run choco you see the version of chocolatey installed.
choco -v
After that just do one more thing
in PowerShell or cmd just copy-paste the following command to install chocolatey yarn in your system
choco install yarn
Here your yarn has been installed, check your yarn version using the following command.
yarn -v
That's it!! :)
This will definitely work :)