How to instal Yarn on Windows?

This is a step-by-step guide for installing Yarn on a Windows machine.

What is Yarn?

Yarn is an acronym for Yet Another Resource Negotiator. It is a package manager, mainly for JavaScript code packages.

Yarn Official page

A good feature in Yarn is when it downloads a new package it saves it on a cache, so there is no need to re-download it later.

Installation

To install Yarn on Windows, we must open a new Command Prompt window and run the following command.

npm install — global yarn

The Yarn installer will start.

When the installer finishes Yarn is installed on Windows. We can check the installed version by opening a Command Prompt window and running the following command:

yarn -v

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response