Yarn Package Manager
For JavaScript package management, Elentra JS 2.0 has migrated to using Yarn.
Yarn is a package manager originally developed by Facebook, that has some distinct differences and advantages over npm, though both have access to the same registered library of packages.
The main benefit of Yarn is that it is significantly faster, especially in larger projects with many dependencies, and unlike npm it can handle more than one installation step at a time. Yarn is also better in terms of security, as it will exclusively load packages defined in the yarn.lock
or package.json
files, and verifies each one with a checksum.
The terminal commands for Yarn are slightly different than npm and may take some getting used to but they will quickly become second nature. The Technical Setup Guide section of the documentation has an article on how to get set up and using Yarn.
Last updated