How to install pnpm in windows

Share:

You can install pnpm (Performant NPM) on Windows using multiple methods. Below are the most common ways:


Method 1: Install via PowerShell (Recommended)

  1. Open PowerShell as Administrator.
  2. Run the following command: powershellCopyEditiwr https://get.pnpm.io/install.ps1 -useb | iex
  3. Restart your terminal and verify the installation: powershellCopyEditpnpm -v

Method 2: Install via npm

If you already have Node.js and npm installed, you can install pnpm using npm:

  1. Open Command Prompt (cmd) or PowerShell.
  2. Run: shCopyEditnpm install -g pnpm
  3. Verify installation: shCopyEditpnpm -v

Method 3: Install via Corepack

Corepack is included with recent Node.js versions (>=16.10):

  1. Enable Corepack: shCopyEditcorepack enable
  2. Install pnpm: shCopyEditcorepack prepare pnpm@latest --activate
  3. Check installation: shCopyEditpnpm -v

Method 4: Install via Scoop (Windows Package Manager)

If you use Scoop, you can install pnpm easily:

  1. Open PowerShell and install Scoop if not installed: powershellCopyEditiwr -useb get.scoop.sh | iex
  2. Install pnpm using Scoop: powershellCopyEditscoop install pnpm
  3. Verify installation: powershellCopyEditpnpm -v

Method 5: Install via Chocolatey

If you use Chocolatey, you can install pnpm with:

  1. Open Command Prompt as Administrator.
  2. Run: shCopyEditchoco install pnpm -y
  3. Verify installation: shCopyEditpnpm -v

After Installation: Configure PNPM

If you installed pnpm via a script, you may need to add it to your PATH manually:

  • Open PowerShell and run: powershellCopyEdit$env:Path += ";$HOME\AppData\Local\pnpm"

Conclusion

The recommended way is using PowerShell:

powershellCopyEditiwr https://get.pnpm.io/install.ps1 -useb | iex

If you already have Node.js, using:

shCopyEditnpm install -g pnpm

is a simple alternative.

4 Responses

  1. Hello,
    You may not have received a message like this before,
    not because it looks different, but because its timing matters more than its content.
    Not every message is sent by chance.
    Some arrive at exactly the right moment,
    when we are ready to pause… and reflect.
    We don’t want to take much of your time.
    We’re not asking for anything,
    and we’re not looking for a quick decision.
    Just a simple thought,
    one that might change how you see your day…
    or how you see someone else.
    Perhaps you opened this message out of curiosity,
    and that’s completely natural.
    Curiosity is often the first step toward understanding.
    What’s inside
    is not an advertisement,
    not a request,
    and not an attempt to persuade you.
    Just a few simple words,
    which may quietly resonate with you,
    or simply pass by — both are perfectly fine.
    There are things we move past every day
    without ever stopping to notice them.
    This message is nothing more than a gentle invitation to pause.
    Take a moment.
    Read calmly.
    Think just a little.
    Then decide for yourself.
    The rest… is up to you.
    The full story is not found in these lines
    https://godway.net/2026/02/05/where-survival-depends-on-you/

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Now