npm vs Yarn
| npm | Yarn | |
|---|---|---|
| Free plan | Yes | Yes |
| Free trial | No | No |
| Paid from | $7/mo | Free |
| Open source | No | No |
| Platforms | Linux, macOS, Windows | Linux, macOS, Windows |
| Free plan | Yes | Yes |
| Paid from | $7/mo | — |
| Package formats | package.json folders, gzipped tarballs, URLs, name@version, name@tag, Git URLs | npm packages; tarballs; local, Git, link, patch, portal, and workspace references |
| Supported platforms | macOS, Windows, Linux, and other operating systems via Node.js installers or version managers | Linux, macOS, Windows |
| Dependency resolution | Yes | Yes |
| Lockfile support | Yes | Yes |
| Workspace support | Yes | Yes |
| Private registry auth | Yes | Yes |
| Offline installation | Yes | Yes |
Both are listed in Best Package Managers, Best Monorepo Management Tools, Best JavaScript Package Managers. On Inferse, npm scores higher on our published basis.