Alternatives to Yarn

An independent open-source JavaScript package manager built around workspaces, with plugins and reproducible installs. The listings below can replace it for an important use case. Each note says what changes if you switch.

The original

Replacements

Listings that take over the same core job as Yarn.

  • pnpm

    A Node.js package manager that saves disk space by hard-linking packages from a shared store.

    pnpm is an MIT-licensed package manager that keeps one copy of each package version on disk with strong workspace support, though its strict layout can break some tools.

  • Bun

    A JavaScript runtime, bundler, test runner and package manager in one executable, built as a faster drop-in for Node.js.

    Bun combines a package manager with a runtime, bundler and test runner in one MIT-licensed executable, with fast installs but incomplete Node compatibility.

  • Deno

    A JavaScript and TypeScript runtime with security on by default, TypeScript built in, and a complete toolchain in one binary.

    Deno is a runtime with npm compatibility and a built-in toolchain, so it replaces Yarn's installs only as part of switching away from Node.

Similar software

Related functionality, not a direct replacement.