Languages

Install pnpm and Yarn

The two popular alternatives to npm, installed globally with npm itself.

  1. Install pnpm
    Terminal
    npm install -g pnpm

    Needs Node.js first.

  2. Install Yarn
    Terminal
    npm install -g yarn

Check it worked

  1. Check the versions
    Terminal
    pnpm --version && yarn --version
Undo it
  1. Uninstall both
    Terminal
    npm uninstall -g pnpm yarn
  1. Install pnpm
    Terminal · Ubuntu / Debian
    npm install -g pnpm

    Needs Node.js first. Using nvm avoids needing sudo here.

  2. Install Yarn
    Terminal · Ubuntu / Debian
    npm install -g yarn

Check it worked

  1. Check the versions
    Terminal · Ubuntu / Debian
    pnpm --version && yarn --version
Undo it
  1. Uninstall both
    Terminal · Ubuntu / Debian
    npm uninstall -g pnpm yarn
  1. Install pnpm
    PowerShell
    npm install -g pnpm

    Needs Node.js first.

  2. Install Yarn
    PowerShell
    npm install -g yarn

Check it worked

  1. Check the versions
    PowerShell
    pnpm --version; yarn --version
Undo it
  1. Uninstall both
    PowerShell
    npm uninstall -g pnpm yarn