Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add pnpm update instruction. #516

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions versioned_docs/version-9.x/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,31 @@ If you need to remove the pnpm CLI from your system and any files it has written

[Uninstalling pnpm]: ./uninstall.md
[pnpm env]: ./cli/env.md

## Updating pnpm

Keeping pnpm up-to-date ensures that you benefit from the latest features and improvements. The process to update your pnpm version is straightforward and can be accomplished with a simple command.

:::info

Before updating, you might want to check the current version of pnpm installed on your system by executing `pnpm --version`. This helps you verify the update after completion.

:::

To update pnpm to the latest version, execute the following command in your terminal:

```sh
pnpm install -g pnpm
```

This command will install the latest version of pnpm globally, replacing the current one. If you're specifically targeting a version, you can specify it by appending @version to pnpm in the command above, like so:

```sh
pnpm install -g [email protected]
```

:::tip

After updating, run pnpm --version again to confirm that pnpm has been successfully updated to the desired version.

:::