Yarn is the newest package manager on the block with speed and improvements over npm.
From bower to npm, package management for the web has come a long way. I remember when I first started learning web development — you went online, looked for a package, download a zipped version, extract, and link on the web page. Heck, if we wanted a faster website, we would go to a CDN like jsDelivr and pick a globally cached version. From there, tools like bower emerged.
Tech giants like facebook and google decided to team up and make a better package management tool, they called it Yarn. This tool will take packages from NpmJS or Bower registries, it also runs dependency installs parallel to each other.
If you’ve installed a package before, yarn creates a cached copy which facilitates offline package installs. Out of the box, yarn offers flat dependency structure as compared to npm’s nested structure.