JavaScript has three major package managers and each one has a strong argument for being the right choice. npm ships with Node.js and works everywhere. pnpm uses hard links to save gigabytes of disk space and runs faster. yarn introduced workspaces to the ecosystem and has a loyal following.

Choosing the wrong one isn't catastrophic — you can...