Skip to content
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions docs/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ Every setting is listed below, grouped by topic. Follow a setting to read its do
* [nodePackageMapType](./settings/node-modules.md#nodepackagemaptype)
* [symlink](./settings/node-modules.md#symlink)
* [enableModulesDir](./settings/node-modules.md#enablemodulesdir)
* [confirmModulesPurge](./settings/node-modules.md#confirmmodulespurge)
* [virtualStoreDir](./settings/node-modules.md#virtualstoredir)
* [virtualStoreDirMaxLength](./settings/node-modules.md#virtualstoredirmaxlength)
* [virtualStoreOnly](./settings/node-modules.md#virtualstoreonly)
Expand Down
22 changes: 22 additions & 0 deletions docs/settings/node-modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,28 @@ mount a modules directory with FUSE: [@pnpm/mount-modules].

[@pnpm/mount-modules]: https://www.npmjs.com/package/@pnpm/mount-modules

### confirmModulesPurge

* Default: **true** (confirmation is disabled in CI)
* Type: **Boolean**

When pnpm has to recreate a `node_modules` directory because its existing
layout is incompatible with the current install settings, this setting controls
whether pnpm asks for confirmation first. Set it to `false` to let pnpm remove
and reinstall the directory without prompting. When confirmation is enabled
but no TTY is available and CI is not detected, pnpm aborts the install instead.

```yaml title="pnpm-workspace.yaml"
confirmModulesPurge: false
```

:::note

This setting is supported by pnpm v11. pnpm v12 does not implement it and warns
that it belongs to pnpm v11.

:::

### virtualStoreDir

* Default: **node_modules/.pnpm**
Expand Down