Tiny Package Manager: Learns how npm or Yarn works
GitHub
Explore a simple package manager demo and understand the core functionality of NPM or Yarn v1, including package downloads, dependency resolution, and more.
Technical TutorialsProgramming
Introduction
Learn how npm or Yarn v1 works through a simple package manager demo.
Highlights
Download packages to node_modules directory
Simple CLI
Resolve dependency conflicts
Flatten dependencies tree
Support lock file (like yarn.lock or package-lock.json)
Add a new package through CLI (like yarn add or npm i <package> command)
Run lifecycle scripts (preinstall and postinstall)
Symlink the bin files
Recommendation
This course is suitable for JavaScript developers who want to understand how a package manager like npm or Yarn works under the hood. It provides a simple and straightforward demo to explain the core functionality of a package manager.
How GetVM Works
Learn by Doing from Your Browser Sidebar
Access from Browser Sidebar
Simply install the browser extension and click to launch GetVM directly from your sidebar.
Select Your Playground
Choose your OS, IDE, or app from our playground library and launch it instantly.
Learn and Practice Side-by-Side
Practice within the VM while following tutorials or videos side-by-side. Save your work with Pro for easy continuity.