Amplifying/ai-benchmarks

npm

Default Node.js package manager

JS/TS
Overall Rank
Not in top 20
23%
Pick Rate
31 of 135 (CI: 16.7–30.7%)
31
Primary Picks
of 135 extractable
40
Alt Picks
also mentioned 28x
Strong Default
Category Tier
56.3% winner dominance

In Package Manager

Full comparison →
pnpm76/135 (56.3%) CI: 47.9–64.4%
npm31/135 (23%) CI: 16.7–30.7%
bun27/135 (20%) CI: 14.1–27.5%
yarn1/135 (0.7%) CI: 0.1–4.1%

By Model

Sonnet 4.5
11.1%
avg across repos
Opus 4.5
13.3%
avg across repos
Opus 4.6
26.7%
avg across repos

Per-Repo Breakdown

RepoStackSonnetOpus 4.5Opus 4.6
TaskFlowJS/TS
Next.js 14, TypeScript, App Router13.3%20%20%
InvoiceTrackerJS/TS
Vite, React 18, TypeScript20%20%20%
deployctlJS/TS
Node.js, TypeScript, Commander.js40%

Key Insight

pnpm is the default (56.3%), followed by npm (23%) and bun (20%). yarn is a known alternative (51 alt picks) but is almost never the primary recommendation (0.7%). All four package managers are well-represented in alternative mentions.

Frequently Asked Questions

Does Claude Code recommend npm?
npm appears in 23% of Package Manager responses. It competes with pnpm (56.3%) in this category.
What package manager tool does Claude Code prefer?
pnpm leads at 56.3%. The category is classified as "Strong Default" (50–75% dominance). Other options include npm (23%) and bun (20%).
How do different Claude models compare on npm?
Across repos, Sonnet 4.5 averages 11.1%, Opus 4.5 averages 13.3%, and Opus 4.6 averages 26.7% for npm.

See Also