pnpm Cheat Sheet/Update dependencies

Update dependencies according to the allowed ranges.

Section: Install, Add, Remove, Update

Update dependencies

bash
bash
pnpm update
Explanation

Update dependencies according to the allowed ranges.

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
Add dependency
Add a package to dependencies.
OpenIn sheetbashsame section
Remove dependency
Remove a package from dependencies.
OpenIn sheetbashsame section
Update package to latest
Update a package to the latest available version.
OpenIn sheetbashsame section
Install with frozen lockfile
Fail if the lockfile would need changes; common in CI.
OpenIn sheetbashsame section
Install in offline mode
Install using only already-fetched packages from the store.
OpenIn sheetbashsame section