pnpm
$ pnpm Community Med RiskDisk-efficient, strict Node.js package manager using a global content-addressable store and symlinked node_modules. Provides --json output across list, outdated, and audit, plus CI=true / --reporter=append-only for clean agent logs.
brew install pnpm Manages local node_modules, pnpm-lock.yaml, and workspace scripts directly on disk.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports --json on list, outdated, and audit, --frozen-lockfile, --reporter=append-only, and CI=true.
pnpm list --jsonandpnpm audit --jsonoutput clean JSON--reporter=append-onlyprevents ANSI cursor rewrites
Strict node_modules prevents phantom dependency leaks and v10 restricts build scripts by default, though lifecycle hooks need --ignore-scripts on untrusted code.
--frozen-lockfileprevents silent lockfile drift- Strict non-flat symlinked dependency tree
Available as standalone executable, via Corepack, npm, or Homebrew across macOS, Linux, and Windows.
- Cross-platform binary and Corepack support
Global content-addressable store makes monorepo installs fast and disk-frugal.
- First-class workspace filtering (
--filter)
Widely adopted MIT project led by Zoltan Kochan and active contributors.
- Active
pnpm/pnpmrepository
Clear CLI reference at pnpm.io covering every flag and workspace filter.
- Complete command reference at pnpm.io
Security, Auth & Guardrails
Reads npm registry auth tokens from ~/.npmrc or environment variables (e.g. NPM_TOKEN).
MIT open-source CLI; completely free.
# pnpm Agent Rules - Use `pnpm install --frozen-lockfile --reporter=append-only` (with `CI=true`) when verifying existing projects. - Pass `--ignore-scripts` when inspecting untrusted third-party repositories. - Never run `pnpm publish` without explicit user approval.
Agent-Ready Command Recipes
Safe Read-Only Queries
pnpm list --depth=0 --json
Exports top-level project dependencies and versions in JSON without modifying node_modules.
pnpm audit --json
Returns known dependency advisories in structured JSON.
Controlled Writes & Previews
pnpm install --frozen-lockfile --reporter=append-only
Installs exact versions from pnpm-lock.yaml without interactive spinners or lockfile edits.
Strengths for Agents
- + Strict
node_modulescatches missing declared dependencies early in agent edits. - +
pnpm list --jsonandpnpm audit --jsonprovide clean structured inspection. - +
--frozen-lockfileand--reporter=append-onlygive deterministic CI/agent logs.
Caveats & Pitfalls
- !
pnpm installdoes not support a universal--dry-runflag across all phases. - ! Untrusted packages can run
postinstallscripts unless--ignore-scriptsor v10onlyBuiltDependenciesis enforced.