pnpm Cheat Sheet/Install in offline mode

Install using only already-fetched packages from the store.

Section: Install, Add, Remove, Update

Install in offline mode

bash
bash
pnpm install --offline
Explanation

Install using only already-fetched packages from the store.

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 Install, Add, Remove, Update
Install all dependencies
Install dependencies from package.json and lockfile.
OpenIn sheetbashsame section
Install with frozen lockfile
Fail if the lockfile would need changes; common in CI.
OpenIn sheetbashsame section
Add dependency
Add a package to dependencies.
OpenIn sheetbashsame section
Add dev dependency
Add a package to devDependencies.
OpenIn sheetbashsame section
Add optional dependency
Add a package to optionalDependencies.
OpenIn sheetbashsame section
Add exact version
Save an exact version instead of a range.
OpenIn sheetbashsame section