pnpm

Manage Node.js monorepo dependencies with pnpm workspaces and catalogs.

Updated Jan 29, 2026
One-click install
npx skills add https://github.com/peterWang123589/rubin_forum --skill pnpm-peterwang123589
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pnpm
Source: https://github.com/peterWang123589/rubin_forum/tree/main/.opencode/skills/pnpm
Command: npx skills add https://github.com/peterWang123589/rubin_forum --skill pnpm-peterwang123589

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Node.js projects with multiple packages often suffer from unstable dependency versions, duplicated work, and painful workspace configuration. This Skill enforces strict dependency resolution and provides a clear workflow for monorepos using pnpm, catalogs, patches, and overrides.

Core Features & Use Cases

  • Centralized dependency version management across workspaces via catalogs and overrides
  • Monorepo tooling support with workspaces and shared lockfiles
  • Patch and override workflows to fix vulnerabilities or compatibility issues without upstream changes
  • Use Case: Sync dependencies across packages in a large monorepo to prevent phantom dependencies

Quick Start

Install pnpm, initialize a workspace structure (pnpm-workspace.yaml), then configure overrides or catalogs in package.json or workspace YAML to align dependency versions 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 dependency versions across a Node.js monorepo?

To manage dependency versions across a Node.js monorepo, use pnpm workspaces with centralized catalogs and overrides to enforce strict dependency resolution and prevent phantom dependencies.

What is the best way to fix a vulnerability without waiting for an upstream package update?

The best way to fix vulnerabilities without upstream changes is applying pnpm patches and overrides to replace or modify specific dependency versions directly within your workspace configuration.

How do I set up pnpm workspaces for a multi-package project?

Set up pnpm workspaces by initializing a pnpm-workspace.yaml file to define package locations, enabling shared lockfiles and synchronized dependency management across your multi-package repository.

Can I use pnpm catalogs to sync dependencies across multiple workspace packages?

Yes, you can use pnpm catalogs to centralize and sync dependency versions across multiple workspace packages, ensuring all packages reference a single shared version definition.