In this article, we will see how we can install yarn on windows.
First lets understand what yarn is?
Yarn is an established open-source package manager used to manage dependencies in JavaScript projects. It assists with the process of installing, updating, configuring, and removing packages dependencies, eventually helping you reach your objectives faster with fewer distractions.
- Start by enabling Corepack, if it isn't already; this will add the yarn binary to your PATH:
corepack enable
yarn set version stable // install the latest stable version
yarn install
yarn --version
yarn set-version:
yarn set version:
Install the specific yarn version. for eg: 4.0.2 then run below command
yarn set version 4.0.2