मुख्य सामग्री पर जाएँ
Skillpedia
सामान्य कोडिंग6.0k · #14443

pnpm

यह क्या करती है

यह स्किल बताती है कि pnpm से कोड लाइब्रेरी कैसे इंस्टॉल और प्रबंधित की जाएँ। pnpm JavaScript प्रोजेक्ट में इस्तेमाल होने वाला तेज़ टूल है। यह उन डेवलपरों के लिए है जिन्हें तेज़ और भरोसेमंद इंस्टॉल तथा साफ़ मल्टी-पैकेज प्रोजेक्ट चाहिए।

कब इस्तेमाल करें

  • ✓जब आपको pnpm इस्तेमाल करने वाले JavaScript प्रोजेक्ट में निर्भरताएँ इंस्टॉल या अपडेट करनी हैं।
  • ✓जब आप एक रिपॉज़िटरी में कई पैकेज वाला workspace सेट कर रहे हैं।
  • ✓जब आपको स्वचालित बिल्ड सिस्टम में भरोसेमंद इंस्टॉल चाहिए।

Skill का लिंक

https://github.com/antfu/skills/blob/main/skills/pnpm/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/antfu/skills/blob/main/skills/pnpm/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरे प्रोजेक्ट के लिए pnpm सेट कीजिए, मेरे तीन पैकेज के लिए workspace हो, और CI पर भरोसेमंद इंस्टॉल हो।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट कमांड और सेटिंग पर pnpm के मार्गदर्शन का पालन करता है, प्रोजेक्ट की सेटिंग workspace फ़ाइल में रखता है, और स्वचालित बिल्ड में लॉक्ड इंस्टॉल का उपयोग करता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

pnpm is a fast, disk space efficient package manager. It uses a content-addressable store to deduplicate packages across all projects on a machine, and enforces strict dependency resolution by default, preventing phantom dependencies.

pnpm v12 is a Rust rewrite of v11: stable, and keeps v11's commands, flags, settings, and lockfile format — so most guidance here applies to both. A handful of v12 behaviors differ (git deps resolve via HTTPS, project-aware global bins, other package managers, packageImportMethod: auto hardlinks first on Linux, --resolution-only removed) — see best-practices-migration.

Configuration model (important): pnpm settings live in pnpm-workspace.yaml (and the global config.yaml) using camelCase keys. .npmrc is used only for authentication/registry credentials, and the pnpm field of package.json is no longer read. When working in a pnpm project, check pnpm-workspace.yaml for settings/workspace structure and .npmrc only for auth. Always use --frozen-lockfile (or pnpm ci) in CI.

The skill is based on pnpm 12.x, generated at 2026-09-25. It covers v11+v12 behavior (config split, isolated global packages, allowBuilds, pmOnFail, global virtual store, native release management, workspace task orchestration, and experimental Python/Cargo support) where current docs describe them.

Core

Topic Description Reference
CLI Commands install/add/remove/update, run, dlx/pnx, workspace, runtime, publishing (version, view, sbom, stage) core-cli
Configuration pnpm-workspace.yaml settings (camelCase), global config.yaml, packageConfigs, .npmrc auth core-config
Workspaces Monorepo support: filtering, workspace protocol, shared lockfile, packageConfigs core-workspaces
Store Content-addressable store, virtual store, node linker modes, frozen/read-only store core-store

Features

Topic Description Reference
Catalogs Centralized dependency versions; catalogMode, catalog: in overrides features-catalogs
Overrides Force versions (incl. transitive & peer deps); packageExtensions features-overrides
Patches Modify third-party packages; patchedDependencies in pnpm-workspace.yaml features-patches
Aliases Install under custom names (npm:) and registry aliases (namedRegistries) features-aliases
Hooks .pnpmfile.mjs hooks (readPackage, updateConfig, beforePacking), finders, resolvers/fetchers features-hooks
Peer Dependencies Auto-install, strict mode, rules, dedupePeers, peers check features-peer-deps
Config Dependencies Share hooks/settings/catalogs/patches across repos via configDependencies features-config-dependencies
Global Virtual Store & Shims Shared node_modules, git-worktree multi-agent setups, isolated global packages, project-aware bins, other package managers features-global-virtual-store
Supply-Chain Security Build approval (allowBuilds), minimumReleaseAge, trustPolicy, lockfile integrity features-supply-chain-security
Task Orchestration Cross-project task graphs (tasks/dependsOn), concurrency groups, priority, pnpm pipeline features-task-orchestration
Release Management Native versioning: pnpm change/version -r/lane, lanes, epics, fixed groups features-versioning
Multi-Ecosystem Python (pypi:) and Cargo (crate:) dependencies alongside npm (experimental) features-multi-ecosystem

Best Practices

Topic Description Reference
CI/CD Setup GitHub Actions, GitLab, Docker, pnpm ci, store caching, frozen lockfiles best-practices-ci
Migration npm/Yarn → pnpm, phantom deps, and pnpm v10 → v11 → v12 upgrade notes best-practices-migration
Performance
अक्सर पूछे जाने वाले सवाल

pnpm की सेटिंग कहाँ रहती हैं?

प्रोजेक्ट की सेटिंग workspace फ़ाइल में जाती हैं, और कॉन्फ़िगरेशन फ़ाइल मुख्य रूप से साइन-इन विवरण के लिए है।

npm के बजाय pnpm क्यों?

pnpm प्रोजेक्ट्स के बीच पैकेज साझा करके डिस्क स्थान बचाता है और निर्भरताओं की सख़्ती से जाँच करता है।

क्या यह मोनोरेपो को कवर करता है?

हाँ। यह workspaces को कवर करता है, जो एक रिपॉज़िटरी में कई पैकेज रखते हैं।

जानकारी

लेखक का मूल विवरण

Node.js package manager with strict dependency resolution. Use when running pnpm specific commands, configuring workspaces via pnpm-workspace.yaml, or managing dependencies with catalogs, patches, overrides, config dependencies, or the global virtual store.

repo: antfu/skills

लोकप्रियता

GitHub स्टार
6.0k
रैंकिंग में स्थान
#14443
लाइसेंस
MIT
अपडेट की गई
30/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

antfu-create-pr

6.0k

आपके एजेंट को आपकी ब्रांच से GitHub पर साफ़ pull request खोलने में मदद करती है, जिसमें बदला गया और कारण का सरल सारांश होता है।

कोडिंगसामान्य कोडिंग

antfu-issue-triage

6.0k

आपके एजेंट को खुले GitHub इश्यू और pull request छाँटने में मदद करती है, डुप्लिकेट और पहले से ठीक हो चुके आइटम पहचानकर, और कार्रवाई से पहले आपसे पूछकर।

कोडिंगसामान्य कोडिंग

antfu-query

6.0k

आपके एजेंट को किसी योजना या विचार पर एक-एक करके सवाल पूछने देती है, जब तक आप दोनों एक स्पष्ट और परखी हुई समझ पर न पहुँच जाएँ।

प्रोडक्टिविटीटास्क और प्रोजेक्ट

antfu-simplify

6.0k

आपके एजेंट को आपके कोड बदलावों को सबसे छोटे सही रूप में घटाने में मदद करती है, जिसमें जो ज़रूरी नहीं है उसे हटाया जाता है।

कोडिंगसामान्य कोडिंग

मिलती-जुलती skills