pnpm Cheat Sheet/Set up pnpm on your machine

Creates the pnpm home directory and updates shell configuration as needed.

Section: Getting Started

Set up pnpm on your machine

bash
bash
pnpm setup
Explanation

Creates the pnpm home directory and updates shell configuration as needed.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Getting Started
Install pnpm with standalone script
Install pnpm via the official standalone script.
OpenIn sheetbashsame section
Initialize a package
Create a package.json interactively.
OpenIn sheetbashsame section
Show pnpm help
Display top-level CLI help.
OpenIn sheetbashsame section
Show help for a command
Display help for a specific subcommand.
OpenIn sheetbashsame section
Show pnpm version
Print the installed pnpm version.
OpenIn sheetbashsame section
Show Node.js version used by pnpm
Check the Node runtime in the current environment.
OpenIn sheetbashsame section