This talk discusses package management in Node.js. It clearly defines terms that are often confused among Node.js developers such as module, package, and dependency. It covers concepts like the dependency tree, why the logical and physical trees shouldn't be the same, how npm and yarn use de-duplication to reduce storage, how pnpm uses symlinks to reduce storage even more, and how SemVer comes into play. It also covers module resolution, how `require()` works, and how modules are stored in an in-memory cache. Finally, it covers some best practices and tools to simplify package management with Node.js projects.
Basics: How do dependencies work?
Let's Define some Terms
Dependency Installation
Packages are Versioned
Dependency Tree: Where do those dependencies go?
Logical Dependency Tree
Physical Dependency Tree, Naive
Physical Dependency Tree, De-duplicated
Determining Physical Tree is Complex
Another Dependency Tree Approach: pnpm
Install Determinism
Module Resolution: How does `require()` work?
Overview of `require()`
Module Resolution Examples
Require Cache
Best Practices: What's the best way to use this stuff?
Deployment and Workflow
Requiring Packages
Security Concerns
https://www.utahjs.com
Смотрите видео Node.js Package Management - Thomas Hunter II онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал UtahJS 11 Ноябрь 2021. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 210 раз и оно понравилось 8 посетителям.