Yarn, npm v5 or pnpm — Who's Cooler?
summary
Compares package managers Yarn, npm v5 and pnpm by measuring install speed, lockfile formats/determinism, monorepo/workspace features, and disk usage. Notes npm v5 adds package-lock.json by default and npx but is often the slowest; Yarn provides workspaces, selective resolutions, lockfile auto-merge and interactive upgrades; pnpm uses hardlinks/symlinks and hoisting to save disk space and avoid long-path Windows problems.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 2:44CLI comparison npm Yarn pnpm
- 9:46Yarn Workspaces lock merging
- 14:47Dependency install speed benchmarks
- 19:25pnpm symlinks disk savings
- 24:23Lock files purpose formats
- 33:36node_modules determinism issues
- 41:25pnpm path duplication fixes
- 45:46Package manager choice
- 49:22Q&A
related talks
41mnpm and the Future of JavaScript
42mSecuring Your Software Supply Chain
42mPACKAGES FOR MASS CONSUMPTION - AN NPM STORY UNFOLDED
46mNavigating the Dependency Management Maze
18mNode.js Module: I Choose You!
20mWhat If Npm Install Could Say No? Real-Time Defense Against Malicious Packages
29mThink Like an Attacker: Why Your npm install Is a Hacker's Dream
31mWhat's Going on Inside the Node_Modules Folder
