Skip to content

Commit bd822a0

Browse files
authored
docs: add note about Node.js 22+ script execution without pnpm (#700)
1 parent d7b8761 commit bd822a0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/settings/_shellEmulator.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,11 @@ next script will fail on non-POSIX-compliant systems:
1818
But if the `shellEmulator` setting is set to `true`, it will work on all
1919
platforms.
2020

21+
:::note
22+
23+
Node.js 22 or higher supports running scripts without pnpm's assistance. For the example above, you can run the `test` script with `node --run test`. However, the `shellEmulator` option has no effect on this. Scripts that depend on POSIX features are required to be run `pnpm run` instead of `node --run` to work in non-POSIX-compliant environments.
24+
25+
:::
26+
2127
[bash-like shell]: https://www.npmjs.com/package/@yarnpkg/shell
2228

0 commit comments

Comments
 (0)