Yarn is an package manager for managing Node.js packages, developed by Facebook.

Yarn abbrivated as Yet Another Resource Negotiator, Open source from Facebook.

It is popular package manager, similar to npm package, But good interms of security and performance.

it uses yar.lock file for dependency management with parallel downloads for packages.

Yarn key features:

  • Improve performance: Yarn installs packages, download in parallel, to speed up the build performance
  • Cache: yarn downloads the packages to a cache folder and uses cache to for every installation

How to install yarn tool

You can install yarn tool using npm command in terminal.

npm install -g yarn