Titans such as Facebook and Google have teamed up to make a faster and better package manager in comparison to npm. It is called Yarn. Though, donât be alarmed this package management tool takes packages from NpmJS and Bower registries supporting parallel dependency installations.
Current flaws with npm:
So most importantly a single request failing wonât cause an install to fail. Requests are retried. If youâre used to npm, Yarn behaves the same way, merely it complements the workflow.
Official page: https://yarnpkg.com/
There is a special file that is updated after every install, upgrade or removal of project dependencies called a yarn.lock
file. It is a good idea to include this in the VCS for package version consistency.
Another file is a .yarnclean
file , which is updated after you run a âyarn cleanâ (quite similar to its npm counterpart). If a .yarnclean
file is present before you run yarn install, it will clean each package before installing it. Yet again, good idea to include it in the VCS.
Having a good enough backing this could be the defacto package manager of the near futureâŠ