Update yarn
cd to yarn install directory
$cd D:\programs\yarn
Start by enabling Corepack, if it isn't already
$corepack enable
Then initialize
$yarn init -2
Finally update
$yarn set version stable $yarn install
TIP
Yarn also frequently ships Release Candidate builds. Use $yarn set version canary should you need a feature not released on the stable channel yet. Those builds are very stable, the only difference with the regular channel being a more staggered migration between major as we implement new breaking changes.
ย