Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Mastering Yarn: The Complete Guide (Beginner to Advanced)
Rating: 4.7 out of 5(2 ratings)
905 students

Mastering Yarn: The Complete Guide (Beginner to Advanced)

Yarn for JavaScript dependency management, semantic versioning, monorepos, package publishing, Plug’n’Play, scripting
Created byAhmed Elsakka
Last updated 6/2025
English
English [Auto],

What you'll learn

  • Mastering Yarn for JavaScript projects dependency management
  • Understand and Master Yarn basics including dependency management, semantic versioning, lock files and custom scripts
  • Understanding advanced Yarn topics like caching, Plug'nPlay, workspaces and monorepos
  • Learning how to publish packages to NPM

Course content

5 sections25 lectures1h 35m total length
  • Introduction1:29

    Learn yarn as a reliable JavaScript dependency manager, from adding dependencies and semantic versioning to advanced topics like offline caching, yarn.lock, workspaces, monorepos, and publishing packages.

  • What is Yarn ?2:56

    Explore what yarn is—a fast, secure, and reliable JavaScript package manager—and how yarn.lock, caching, and parallel installs address npm’s issues with inconsistent dependency versions, slow installs, and security concerns.

  • Environment Setup1:17

    Set up your development environment by installing Node.js, then yarn globally via npm. Choose Visual Studio Code (or any editor) and follow platform-specific downloads for Windows, Mac, or Linux.

Requirements

  • Basic JavaScript knowledge (JavaScript refresher crash course included in the course)

Description

Yarn is a very popular and widely-used JavaScript package manager which is based on NPM. It's popularity is still increasing and currently trusted by top tech companies due to it's efficiency and reliability, and learning Yarn is definitely a valuable skill as a web developer.


In this course we are going to learn everything about Yarn starting from basics to advanced Yarn topics and package publishing.


After each section, there is a quiz that you have to solve to apply the knowledge you have gained. And in the end we are going to work on a capstone project to apply what we have learned during the course.


In this course, you will learn:

  • Initializing a Yarn Project

  • Adding and Removing Dependencies

  • Installing Dependencies

  • Importing and Using Dependencies

  • Semantic Versioning

  • Yarn Lock File

  • Updating Dependencies

  • Dependency Types

  • Running Scripts with Yarn

  • Offline Cache

  • Plug’n’Play (PnP)

  • Workspaces And Monorepos

  • Configuring Yarn Using .yarnrc.yml

  • Publishing a package to NPM

  • Publishing a New Version

  • Installing and Using the Package


In the end we are going to work on a capstone project to apply what we have learnt during the course by creating a monorepo task manager CLI tool.


Enroll now and let's step up to the next level as a web developer by mastering Yarn!

Who this course is for:

  • Web developers who are looking forward to level up their skill and stand out in the industry by mastering Yarn