pnpm

Always use pnpm as the package manager unless the project already uses npm or yarn.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "pnpm" with this command: npx skills add renjith100/skills/renjith100-skills-pnpm

When to use

Use this skill proactively for:

  • Installing dependencies
  • Adding or removing packages
  • Running scripts
  • Any command that involves a package manager

Instructions

Always use pnpm as the package manager. Before running any package manager command, check which package manager the project is already using:

  1. If pnpm-lock.yaml exists → use pnpm
  2. If yarn.lock exists → use yarn
  3. If package-lock.json exists → use npm
  4. If none exist (new project) → use pnpm

Never switch the package manager mid-project. If a project already uses npm, continue with npm throughout. Do not mix package managers in the same project.

pnpm Command mappings

Instead ofUse
npm installpnpm install
npm install <pkg>pnpm add <pkg>
npm install -D <pkg>pnpm add -D <pkg>
npm install -g <pkg>pnpm add -g <pkg>
npm uninstall <pkg>pnpm remove <pkg>
npm run <script>pnpm run <script>
npm cipnpm install --frozen-lockfile
npx <cmd>pnpm dlx <cmd>

Lockfile and Dockerfile

  • Always reference pnpm-lock.yaml (not package-lock.json) in pnpm projects
  • In Dockerfiles, use pnpm install --frozen-lockfile --prod for production installs
  • Copy both package.json and pnpm-lock.yaml into Docker images

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

pnpm

No summary provided by upstream source.

Repository SourceNeeds Review
6.4K-antfu
General

pnpm

No summary provided by upstream source.

Repository SourceNeeds Review
116-hairyf
General

pnpm

No summary provided by upstream source.

Repository SourceNeeds Review
General

pnpm

No summary provided by upstream source.

Repository SourceNeeds Review