Elentra JS Documentation
2.0
2.0
  • Introduction
  • Why Elentra JS 2.0?
    • Dedicated Repository
    • TypeScript
    • Class-Based Components
    • Vue Standard Routing
    • Organizational Theming
    • Yarn Package Manager
  • Developers
    • Getting Started
    • Setup Guide
      • Install Requirements
      • Clone the Repository
      • Environment Variables
      • Install Dependencies
      • Serve Dev Mode
  • Design System
    • Overview
    • Component Library
      • Directory Structure
      • Components
    • Style Library
      • Directory Structure
      • How it Works
        • Variables
        • Mixins
        • Utility Classes
        • Elements
        • Legacy Styles
        • Shim
    • Taxonomy
      • UI Taxonomy
      • UX Taxonomy
      • Variable & Utility Class Naming Convention
Powered by GitBook
On this page
  1. Why Elentra JS 2.0?

Yarn Package Manager

PreviousOrganizational ThemingNextGetting Started

Last updated 5 years ago

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.jsonfiles, 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