Skip to content

Commit b92423f

Browse files
authored
docs: add nodeOptions workaround (#687)
* add workaround to docs * Update example
1 parent aac06e2 commit b92423f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/settings.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1120,6 +1120,12 @@ If set explicitly to false, then installing as a non-root user will fail.
11201120

11211121
Options to pass through to Node.js via the `NODE_OPTIONS` environment variable. This does not impact how pnpm itself is executed but it does impact how lifecycle scripts are called.
11221122

1123+
To preserve existing `NODE_OPTIONS` you can reference the existing environment variable using `${NODE_OPTIONS}` in your configuration:
1124+
1125+
```yaml
1126+
nodeOptions: "${NODE_OPTIONS} --experimental-vm-modules"
1127+
```
1128+
11231129
### verifyDepsBeforeRun
11241130

11251131
* Default: **false**

0 commit comments

Comments
 (0)