From f3bf6aac858565a2f91ef24fadd1f14e7a9905dd Mon Sep 17 00:00:00 2001 From: J Garcia Date: Wed, 13 Dec 2023 14:05:11 +0900 Subject: [PATCH] chore: add documentation for use-node-version --- docs/cli/env.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/cli/env.md b/docs/cli/env.md index a2e163a21eb6..cfc45e223529 100644 --- a/docs/cli/env.md +++ b/docs/cli/env.md @@ -106,3 +106,10 @@ pnpm env list --remote 16 The changes are made systemwide. +## Managing Versions + +Add a `use-node-version` directive to `.npmrc` to make pnpm default to that node version when running scripts in your project: + +``` +use-node-version=18.17.1 +```