From bc3bc8294aa4fee506bad8ee2d4e1195957d9387 Mon Sep 17 00:00:00 2001 From: Daniil Fadeev <53193850+shameondev@users.noreply.github.com> Date: Fri, 29 Mar 2024 14:01:08 +0300 Subject: [PATCH] docs: add pnpm update instruction. --- versioned_docs/version-9.x/installation.md | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/versioned_docs/version-9.x/installation.md b/versioned_docs/version-9.x/installation.md index 2f0c1a83ea89..960045fb2eda 100644 --- a/versioned_docs/version-9.x/installation.md +++ b/versioned_docs/version-9.x/installation.md @@ -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 pnpm@9.0.0 +``` + +:::tip + +After updating, run pnpm --version again to confirm that pnpm has been successfully updated to the desired version. + +:::