21.5 Summary
When using Node.js, there is no way around a package manager. However, you’re not bound to npm and can freely choose between the available alternatives such as npm, Yarn, or even pnpm because all package managers obtain the necessary data from the same base repository. The infrastructure provided by the package manager allows Node.js developers to integrate only the essential modules and interfaces into the platform and rely on the package manager for everything else. Thus, database drivers and helper libraries don’t need to be part of Node.js itself.
The fact that the npm repository is an open and free platform where every developer is allowed to publish their work offers both advantages and disadvantages. One advantage is that ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access