pnpm

Manage dependencies in multi-package Node.js projects with pnpm workspaces.

5|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/ShenQingchuan/val.dokduk --skill pnpm-shenqingchuan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pnpm
Source: https://github.com/ShenQingchuan/val.dokduk/tree/main/.agents/skills/pnpm
Command: npx skills add https://github.com/ShenQingchuan/val.dokduk --skill pnpm-shenqingchuan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

pnpm solves the challenges of dependency management in multi-package repositories by delivering deterministic installs, space-efficient storage, and strict dependency resolution that eliminates phantom deps.

Core Features & Use Cases

  • Deterministic, reproducible installs across all workspace packages
  • Full workspace support with pnpm-workspace.yaml, the workspace protocol, catalogs, and overrides
  • Disk efficiency via a content-addressable store and hard-linked node_modules
  • Overrides and patches to fix vulnerabilities or customize dependencies across the workspace
  • Use Case: coordinate 3–5 apps and packages in a monorepo to maintain consistent versions and fast install times

Quick Start

Initialize a pnpm-based workspace at the repository root, then run pnpm install, and use pnpm add, pnpm -r run, or pnpm --filter to manage and execute scripts across packages.

Frequently Asked Questions about pnpm

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage dependencies in a monorepo with consistent versions across multiple packages?

To manage dependencies in a monorepo consistently, you can use pnpm workspaces with a pnpm-workspace.yaml file to coordinate apps and packages, ensuring consistent installs and versions across the repository.

What is the best way to eliminate phantom dependencies in Node.js workspaces?

To eliminate phantom dependencies in Node.js workspaces, pnpm enforces strict dependency resolution using a content-addressable store and hard-linked node_modules, preventing packages from accessing unlisted dependencies.

How do I configure pnpm overrides and catalogs for a multi-package repository?

You can configure pnpm overrides and catalogs by defining them in the workspace configuration, allowing you to fix vulnerabilities or customize dependencies centrally across all workspace packages.

Does pnpm support reproducible installs for monorepos with 3 to 5 apps?

Yes, pnpm supports deterministic, reproducible installs for monorepos, making it suitable for coordinating 3 to 5 apps and packages while maintaining fast install times and disk efficiency.

How do I run scripts across multiple packages in a pnpm workspace?

To run scripts across multiple packages in a pnpm workspace, use the pnpm -r run command to execute workflows recursively, or use pnpm --filter to target specific packages within the monorepo.