Skip to content

Commit

Permalink
docs: document manage-package-manager-versions
Browse files Browse the repository at this point in the history
  • Loading branch information
zkochan committed Aug 7, 2024
1 parent bb6076f commit 8f379b4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/npmrc.md
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,21 @@ Added in: v9.2.0

When enabled, pnpm will fail if its version doesn't exactly match the version specified in the `packageManager` field of `package.json`.

### manage-package-manager-versions

Added in: v9.7.0

* Default: **false**
* Type: **Boolean**

When enabled, pnpm will automatically download and run the version of pnpm specified in the `packageManager` field of `package.json`. This is the same field used by Corepack. Example:

```json
{
"packageManager": "[email protected]"
}
```

## Build Settings

### ignore-scripts
Expand Down

2 comments on commit 8f379b4

@styfle
Copy link

@styfle styfle commented on 8f379b4 Aug 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zkochan Which directory does it download to? Is it cached if the same version is run twice? How long is it cached?

@zkochan
Copy link
Member Author

@zkochan zkochan commented on 8f379b4 Aug 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is cached forever currently. It is downloaded to $PNPM_HOME/.tools

Please sign in to comment.