{"enrichment":{"faq":[{"a":"Pnpm streamlines dependency installation with a simple command: run `pnpm install` in your project root to fetch and link all packages listed in package.json. Pnpm's efficient disk-space optimization means dependencies are stored in a central location and symlinked to your project, reducing storage overhead compared to traditional approaches. For adding new packages, use `pnpm add <package-name>` to install and automatically update your lock file.","q":"How do I use pnpm to install dependencies?"},{"a":"Pnpm excels at managing monorepos through its workspace feature. To set up pnpm workspaces, create a `pnpm-workspace.yaml` file in your project root listing directories containing packages (e.g., `packages/*`). Pnpm workspace configuration allows you to install dependencies once and share them across multiple packages, reducing duplication. Each workspace package maintains its own package.json, and pnpm intelligently resolves internal dependencies, making it ideal for Vue, Nuxt, and NuxtHub environments where multiple related projects coexist.","q":"What is pnpm monorepo setup and how do I configure workspaces?"},{"a":"Pnpm outperforms npm and yarn through superior disk-space efficiency and faster installation speeds. Unlike npm and yarn which duplicate dependencies in each project's node_modules, pnpm uses a content-addressable store and symlinks, dramatically reducing disk usage. Pnpm's dependency resolution is also faster, and its lock file management prevents inconsistencies across environments. For teams prioritizing performance optimization and lean project footprints, pnpm offers a compelling alternative to npm and yarn.","q":"How does pnpm compare to npm and yarn for performance?"},{"a":"Pnpm provides essential CLI commands for project management: `pnpm install` installs all dependencies, `pnpm add` adds new packages, `pnpm remove` removes packages, and `pnpm update` upgrades versions. For workspaces, use `pnpm -r install` to install across all packages. Pnpm scripts and tasks run via `pnpm run <script-name>`, mirroring npm behavior. The `pnpm list` command displays your dependency tree, and `pnpm prune` cleans unused packages. These commands cover most daily workflows for dependency management and project setup.","q":"What are the main pnpm CLI commands I should know?"},{"a":"Pnpm revolutionizes node_modules structure by using symlink dependencies instead of duplication. Rather than copying each dependency into node_modules, pnpm creates a central store and symlinks packages into your project, dramatically improving disk efficiency. This approach also prevents phantom dependencies\u2014packages you didn't explicitly declare but could accidentally use. Pnpm's symlink strategy ensures cleaner, more predictable dependency resolution and faster installation times, making it ideal for large projects and monorepos.","q":"How does pnpm handle node modules and symlink dependencies?"},{"a":"Pnpm lock file management is critical for reproducible builds. Always commit your `pnpm-lock.yaml` to version control to ensure all team members and CI/CD pipelines use identical dependency versions. Pnpm best practices include regularly running `pnpm update` to keep dependencies current, using `pnpm audit` to check for security vulnerabilities, and leveraging workspaces for monorepo organization. Avoid manually editing lock files; let pnpm handle updates. For version management across packages, use consistent versioning strategies and document your dependency policies in team guidelines.","q":"What should I know about pnpm lock file management and best practices?"}],"shadow_tags":["package-management","node-ecosystem","dependency-resolution","monorepo-tools","disk-efficient","workspace-management","performance-optimization","javascript-tooling","dev-environment"],"summary_rewrite":"This skill equips AI coding assistants with pnpm package management capabilities, enabling streamlined dependency installation and updates across Vue, Nuxt, and NuxtHub environments. Leverage pnpm's efficient workspace handling and disk-space optimization to keep your project dependencies lean and maintainable."},"gist":{"api_url":"https://skillfed.io/api/skills/onmax/nuxt-skills/pnpm.json","as_of":"2026-07-27","description":"Pnpm streamlines dependency installation with a simple command: run `pnpm install` in your project root. npx skillfed install onmax/nuxt-skills/pnpm","install":{"manual":["git clone https://github.com/onmax/nuxt-skills","cp -r nuxt-skills ~/.claude/skills/pnpm"],"primary":"npx skillfed install onmax/nuxt-skills/pnpm","version":"8e8c32ea"},"kind":"skill","mirror_url":"https://skillfed.io/onmax/nuxt-skills/pnpm.md","similar":[{"id":"onmax/nuxt-skills/ts-library","name":"Ts Library","publisher":"onmax/nuxt-skills","url":"https://skillfed.io/onmax/nuxt-skills/ts-library"}],"title":"Pnpm by onmax: Learn pnpm CLI commands and best practices \u2014 SkillFed","use":{"when":["Pnpm excels at managing monorepos through its workspace feature.","Pnpm outperforms npm and yarn through superior disk-space efficiency and faster installation speeds."]},"what":{"lead":"Pnpm streamlines dependency installation with a simple command: run `pnpm install` in your project root to fetch and link all packages listed in package.json. Pnpm's efficient disk-space optimization means dependencies are stored in a central location and symlinked to your project, reducing storage overhead compared to traditional approaches. For adding new packages, use `pnpm add <package-name>` to install and automatically update your lock file."}},"id":"onmax/nuxt-skills/pnpm","install":{"mode":"external","repo":"https://github.com/onmax/nuxt-skills"},"links":{"html":"https://skillfed.io/onmax/nuxt-skills/pnpm","md":"https://skillfed.io/onmax/nuxt-skills/pnpm.md","repo":"https://github.com/onmax/nuxt-skills"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":34,"language":"TypeScript","last_updated":"2026-07-27","license":null,"name":"Pnpm","publisher":"onmax","stars":691},"relations":{"similar":[{"id":"onmax/nuxt-skills/tsdown"},{"id":"onmax/nuxt-skills/ts-library"},{"id":"onmax/nuxt-skills/motion"},{"id":"onmax/nuxt-skills/tresjs"},{"id":"onmax/nuxt-skills/nuxt-ui"},{"id":"onmax/nuxt-skills/document-writer"},{"id":"onmax/nuxt-skills/nuxt-studio"},{"id":"onmax/nuxt-skills/nuxt-modules"},{"id":"onmax/nuxt-skills/nuxt"},{"id":"onmax/nuxt-skills/nuxt-content"}]},"slug":{"owner":"onmax","repo":"nuxt-skills","skill":"pnpm"},"version":"8e8c32ea"}
