# npm: 7.5 out of 10

A strong pick. 5th of 10 in [Package managers and monorepo tools](https://elestia.ai/opensource/package-tools/index.md).

npm is the package manager that ships with Node.js. It works everywhere and since v12 (July 2026) it has safer install defaults. It is a solid, zero-setup choice. For new projects that care about install speed, disk use or large monorepos, pnpm or Bun do the job better.

**Best for:** Projects that want the zero-setup default that every tool, host and CI image supports, with a few simple workspaces at most.

## Scores

- **Overall: 7.5** (likely 6.4 to 8.5)
  - Claude Opus 5.5 (7.0): npm is the safe default that works everywhere, is well funded, and became much safer with v12. For a new project, pnpm gives faster installs, stricter dependencies and better monorepo support. Bun is faster still. npm is a strong pick for simple projects but not the best in its category.
  - GPT-6.2 Sol (7.9): npm is a strong pick for a new Node.js app or library because setup is simple, the CI workflow is well documented, and releases are frequent. pnpm is the stronger pick when a large workspace needs dependency-ordered scripts, and Turborepo adds task caching if the team keeps npm. The recommendation depends on how much install speed and build coordination matter to the project.
- **Needed by many: 9.1** (likely 8.3 to 10.0)
  - Claude Opus 5.5 (9.0): Nearly every JavaScript and TypeScript project needs a package manager, and npm is the one Node.js ships with. It covers installing and basic workspaces but not task running, caching or releases, which narrows it slightly within this category.
  - GPT-6.2 Sol (9.2): Dependency installation is routine across JavaScript and TypeScript apps, libraries, and tooling. npm works across frameworks and can install dependencies for browser projects as well as Node.js services. The main limit is that running the CLI requires Node.js.
- **Helps a lot: 6.9** (likely 5.9 to 8.0)
  - Claude Opus 5.5 (6.5): npm is reliable and compatible, and v12 adds strong security defaults. It is still clearly slower than pnpm and Bun and uses more disk space. Its workspaces lack pnpm's catalogs and strict isolation. A long-standing lockfile bug with platform-specific optional dependencies was fixed only in 2025.
  - GPT-6.2 Sol (7.3): npm 12.2.3 has clear documentation for locked CI installs, workspace linking, and package scripts. Workspace scripts run in manifest order, while pnpm can run them in dependency order. External tests found slower cold installs, and a recent report shows an edge case where a generated lockfile fails in CI. Install timings vary by project, and the benchmarks tested earlier npm versions.
- **Holds up over time: 8.6** (likely 7.4 to 9.5)
  - Claude Opus 5.5 (8.5): GitHub funds npm, Node.js bundles it, and its release pace is steady: 525 commits and 39 npm versions in the last year. The v12 breaking changes were announced in advance and shown as warnings from 11.16.0. Some ecosystem momentum is moving to pnpm and Bun, but npm will not go away.
  - GPT-6.2 Sol (8.6): Node.js distribution and an active GitHub-backed team make npm a durable choice. The CLI itself published 39 versions in the past year, and a reported Gutenberg CI regression was fixed promptly despite a sizable open backlog. MDN documented migration work caused by npm 12, and the release records do not establish how many maintainers can publish.
- **Used widely: 8.6** (likely 7.5 to 9.7)
  - Claude Opus 5.5 (9.0): npm comes with Node.js, so its real use is far larger than the 96M separate downloads every 4 weeks show. It has the most dependent repos in the category. Its download ratio of 2.6 sits below the 4.1 median, while pnpm (9.4) and Bun (10.8) grow much faster, so npm's share of new projects is slowly falling.
  - GPT-6.2 Sol (8.2): npm has very broad use, with 139,345 tracked dependent repositories and a large lead in the Stack Overflow survey. Separate installs grew 2.56× year over year, below the 4.1× catalog median and pnpm's 9.37×, which points to weaker relative momentum. Node.js bundling leaves many installs out of the download count and makes it hard to measure how often new projects actively choose npm.
- **Vouched for: 7.7** (likely 6.6 to 8.8)
  - Claude Opus 5.5 (8.0): npm is the official Node.js package manager. It is used in production at almost every JavaScript company, and security firms such as Socket, Semgrep and Aikido covered the v12 changes as a welcome advance. Its satisfaction trails pnpm and Bun in surveys and comparisons, which keeps the score below the top.
  - GPT-6.2 Sol (7.4): Node.js ships npm, MDN relies on it across several repositories, and Vite documents it as a supported setup path. The 2026 Stack Overflow survey found 37.9% of npm users wanted to keep using it, compared with 49.3% for pnpm. The tooling support is well established, while much of the evidence in use comes from npm 11.
- **Safe: 7.6** (likely 6.4 to 8.6)
  - Claude Opus 5.5 (7.5): No advisories in the last 24 months, and the eight older ones were fixed. v12 now blocks install scripts and remote dependencies by default and deprecates 2FA-bypass tokens. The OpenSSF Scorecard is 6.9, with zeros for pinned dependencies, token permissions and fuzzing. npm bundles about 68 dependencies. Its Artistic-2.0 licence is permissive and OSI-approved.
  - GPT-6.2 Sol (7.6): npm 12 blocks unapproved dependency scripts by default, and the permissive Artistic-2.0 license allows commercial use. The advisory snapshot lists zero disclosures in the last two years, and the older workspace packing flaw was patched and shipped in Node.js. The CLI has 68 direct dependencies, and Scorecard flags token permissions and dependency pinning. The release process documents maintainer sign-in, while the number of authorized publishers remains unclear.

## Good

- It is bundled with Node.js, so it works on every machine, CI image and hosting platform with no extra setup.
- npm 12 skips dependency install scripts by default and blocks remote and git dependencies unless you allow them, which closes common supply-chain attack paths.
- Funded and maintained by GitHub, with about 255 tagged releases in the last year and no advisories in the last 24 months.
- It has the broadest compatibility of any package manager, because tools, docs and AI agents assume npm commands first.

## Bad

- Cold installs are several times slower than pnpm or Bun, and the hoisted node_modules uses much more disk space.
- Workspaces are basic. There are no catalogs, task caching or release tooling, so monorepos need Turborepo, Nx or Changesets on top.
- Hoisting lets code import packages it never declared, which pnpm's strict layout prevents.
- The v12 script allowlist broke some builds, for example when ignore-scripts takes precedence or approve-scripts fails on packages not yet installed.

## The numbers

- Downloads, 4 weeks: 96M
- In a year: ×2.6
- GitHub stars: 10k
- Commits, 12 months: 525
- Last npm release: Nov 2026
- Advisories, 24 months: 0
- Licence: Artistic-2.0
- GitHub: https://github.com/npm/cli
- npm: https://www.npmjs.com/package/npm

npm comes with Node.js, so the downloads count only separate installs of it.

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
