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.

screenshot

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

Access from Browser Sidebar

Simply install the browser extension and click to launch GetVM directly from your sidebar.

Select Your Playground

Select Your Playground

Choose your OS, IDE, or app from our playground library and launch it instantly.

Learn and Practice Side-by-Side

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.

Explore Similar Hands-on Tutorials

C++ Language Tutorial | Beginner to Advanced

38
Technical TutorialsC++Programming
Learn C++ programming from the ground up, including practical examples and the latest features. Ideal for beginners and experienced developers.

Learn Python Basics | Beginner-Friendly Programming Course

20
Technical TutorialsProgrammingPython
Dive into the world of programming with Python, a beginner-friendly language. Explore its readability, versatility, and robust community support.

Python Tutorial For Beginners | Programming, Coding

1
Video CoursesProgrammingPython
Learn Python fundamentals, installation, and setup for beginners. Explore the interactive prompt, create and run your first Python script. Ideal for new programmers.

CS50 Labs | Computer Science Fundamentals | Harvard University

1
University CoursesComputer ScienceProgramming
Explore the intellectual enterprises of computer science and the art of programming with CS50 Labs, Harvard University's renowned introduction to computer science for beginners and experienced learners alike.

Matters Computational: Ideas, Algorithms, Source Code

9
Technical TutorialsAlgorithmProgramming
Comprehensive book covering computational algorithms, source code, and programming concepts. Recommended for programmers and computer scientists.

Foundations of Programming

10
Technical TutorialsProgramming
Comprehensive guide to the core principles of programming, including algorithms, data structures, and software development best practices. Suitable for beginners and experienced developers.

Pointers And Memory | Computer Programming, Memory Management

16
Technical TutorialsCComputer ScienceProgramming
Comprehensive guide to understanding pointers, memory allocation, and optimization techniques for computer science students and software developers.

Beejs Guide to Network Programming - Using Internet Sockets

12
Technical TutorialsCC++NetworkingProgramming
Comprehensive guide to network programming, focusing on the use of internet sockets. Written by experienced author Brian "Beej Jorgensen" Hall, offering in-depth coverage and practical examples.

Networking! ACK! | Networking Concepts & Techniques

3
Technical TutorialsNetworkingProgramming
Explore networking fundamentals like TCP/IP, DNS, and routing in a fun, comic-style format. Suitable for beginners and experienced programmers.