npm
A strong pick. 5th of 10 package managers and monorepo tools.
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
Overall7.5
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 7.0, likely 6.0 to 8.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.
- tech-insider.org/pnpm-vs-npm-vs-bun-2026: Speed gap against pnpm and Bun
- infoq.com/news/2026/08/npm-12-released: Security defaults now match its peers
- peers pnpm/Bun download ratios: Peers are gaining ground faster than npm
GPT-6.2 Sol: 7.9, likely 6.8 to 8.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.
- docs.npmjs.com/cli/v12/commands/npm-ci: Documents the standard lockfile-based CI flow.
- github.com/npm/cli/releases/tag/v12.2.3: Recent stable release with fixes across platforms and workflows.
- pnpm.io/cli/recursive: Dependency-ordered scripts support larger workspace graphs.
- turborepo.dev/docs/crafting-your-repository/caching: Turborepo can reuse task outputs in local development and CI.
Needed by many9.1
How many developers need a tool for this job?
Claude Opus 5.5: 9.0, likely 8.0 to 10.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.
- Node.js distribution: npm is bundled with every Node.js install
- dependents repos: 139,345 dependent repos, the most in the category
GPT-6.2 Sol: 9.2, likely 8.5 to 9.9
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.
- survey.stackoverflow.co/2026/technology/data: 54.6% of respondents to the tooling question reported extensive npm use.
- vite.dev/guide: Vite documents npm scaffolding across JavaScript and TypeScript templates.
- docs.npmjs.com/downloading-and-installing-node-js-and-npm: Node installers distribute npm.
Helps a lot6.9
How well does it do the job for those who need it?
Claude Opus 5.5: 6.5, likely 5.5 to 7.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.
- tech-insider.org/pnpm-vs-npm-vs-bun-2026: Independent benchmarks show npm slowest on cold installs
- infoq.com/news/2026/08/npm-12-released: v12 security defaults; npm was the last major package manager to adopt script controls
- pkgpulse.com/guides/npm-vs-pnpm-vs-yarn-vs-bun-2026: pnpm saves far more disk space and has more mature monorepo support
- bsky.app/profile/jakebailey.dev/post/3llwaydntic2o: The optional-dependency lockfile bug was fixed only in 2025
GPT-6.2 Sol: 7.3, likely 6.2 to 8.4
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.
- docs.npmjs.com/cli/v12/commands/npm-ci: Documents clean installs and lockfile mismatch errors.
- docs.npmjs.com/cli/v12/using-npm/workspaces: Documents local linking and manifest-order script execution.
- pnpm.io/cli/recursive: pnpm runs recursive scripts in dependency order by default.
- nilaykabariya.blog/tested/npm-vs-pnpm-vs-yarn-vs-bun-install-speed: Independent single-project test found npm 11 slower than pnpm and Bun on cold installs.
- github.com/saintparish4/opal: External npm 12.0.2 tests found slower cold installs but competitive results in some CI runs.
- github.com/npm/cli/issues/10193: Open report reproduces an optional-dependency lockfile failure on 12.2.1.
Holds up over time8.6
Will it still be a good choice in two years?
Claude Opus 5.5: 8.5, likely 7.5 to 9.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.
- github commitsLastYear / releasesLastYear: 525 commits and 255 tagged releases in the last year
- npm versionsLastYear: 39 versions; latest 12.2.3 on 2026-11-18
- github.blog/changelog/2026-06-09-upcoming-breaking-changes-for-npm-v12: Breaking changes announced in advance by GitHub
GPT-6.2 Sol: 8.6, likely 7.3 to 9.5
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.
- npm versionsLastYear: 39 CLI versions, separate from the repository's workspace releases.
- github commitsLastYear, openIssues and openPullRequests: 525 commits, 613 open issues, and 241 open pull requests.
- github.com/npm/cli/releases/tag/v12.2.3: The November patch credits several contributors and fixes Windows and install behavior.
- github.com/npm/cli/issues/9357: Maintainers promptly closed a workspace regression affecting Gutenberg CI.
- github.com/mdn/fred/issues/1868: MDN tested npm 12 and found multiple repositories needed migration work.
Used widely8.6
How many use it, and is that growing?
Claude Opus 5.5: 9.0, likely 8.0 to 10.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.
- npm downloadsLast4Weeks: 96.4M vs 37.7M a year ago, a ratio of 2.6, below the 4.1 median
- dependents: 139k repos and 9.6k packages, the highest in the category
- peers pnpm downloads: pnpm grew about 9x year over year
GPT-6.2 Sol: 8.2, likely 7.0 to 9.3
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.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo and medianDownloadsRatio: 96.4 million versus 37.7 million separate installs, below median growth.
- dependents repos and packages: ecosyste.ms tracks 139,345 repositories and 9,618 packages.
- peers and bluesky posts: pnpm's tracked installs grew 9.37×. npm had 84 Bluesky links versus pnpm's 94.
- survey.stackoverflow.co/2026/technology/data: Extensive use was 54.6% for npm and 19.0% for pnpm.
- 2025.stateofjs.com/en-US/other-tools/#monorepo_tools: 3,940 respondents reported using pnpm in monorepos, versus 2,129 for npm Workspaces.
Vouched for7.7
Who stands behind it being good?
Claude Opus 5.5: 8.0, likely 7.0 to 9.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.
- semgrep.dev/blog/2026/rip-npm-postinstall-scripts-npm-v12-default-change: Independent security write-up endorsing v12 defaults
- infoq.com/news/2026/08/npm-12-released: HN thread with 484 points, broadly supportive
- infoq.com/news/2026/03/state-of-js-survey-2025: State of JS 2025 shows growing Bun use; the monorepo section was cut back
GPT-6.2 Sol: 7.4, likely 6.2 to 8.5
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.
- nodejs.org/dist/index.json: Node.js 26.13.1 LTS ships npm 11.20.0.
- github.com/mdn/fred/issues/1868: MDN documents npm use and tests version 12 against its own projects.
- vite.dev/guide: Vite maintains npm instructions alongside other supported managers.
- survey.stackoverflow.co/2026/technology/data: npm's continued-use rate trails pnpm's.
Safe7.6
How safe is it to depend on?
Claude Opus 5.5: 7.5, likely 6.5 to 8.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.
- advisories: 8 total, 0 in the last 24 months
- scorecard: 6.9 overall; Pinned-Dependencies, Token-Permissions and Fuzzing score 0
- npm dependencies: 68 bundled dependencies
- socket.dev/blog/npm-12: v12 install-time security defaults
GPT-6.2 Sol: 7.6, likely 6.3 to 8.7
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.
- npm dependencies and license: 68 direct dependencies and an Artistic-2.0 license.
- advisories total and last24Months: Eight historical advisories and zero in the last 24 months.
- scorecard score and checks: 6.9 overall, with full code review and security policy scores, and zeroes for token permissions and pinning.
- github.com/npm/cli/releases/tag/v12.0.0: The stable major release blocks dependency lifecycle scripts by default.
- github.com/advisories/GHSA-hj9c-8jmm-8c52: The npm 8.11.0 fix shipped in multiple Node.js lines.
- github.com/npm/cli/wiki/Release-Process: Documents release automation, CI checks, and a maintainer publish step.
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
- npm downloads, 4 weeks
- 96M ×2.6 in a year
- GitHub stars
- 10k
- Commits, 12 months
- 525
- npm version
- 12.2.3 Nov 2026
- Versions, 12 months
- 39
- Advisories, 24 months
- 0 of 8 ever
- OpenSSF Scorecard
- 6.9 out of 10, Nov 2026
- Licence
- Artistic-2.0
npm comes with Node.js, so the downloads count only separate installs of it.
Read on 21 November 2026 from GitHub (npm/cli), npm (npm), OSV and the OpenSSF Scorecard.