Skip to content

Commit 0238e3c

Browse files
authored
docs: update README.md
1 parent 7794e47 commit 0238e3c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,9 @@ This error is tracked by issue [#16](https://github.com/yao-pkg/pkg/issues/16#is
414414

415415
In most cases adding `--options experimental-require-module` to `pkg` command line will solve the issue.
416416

417+
> [!NOTE]
418+
> This option is not needed anymore starting from NodeJS v22.12.0
419+
417420
### Error: Cannot find module XXX (when using `child_process`)
418421

419422
When using `child_process` methods to run a new process pkg by default will invoke it using NodeJS runtime that is built into the executable. This means that if you are trying to spawn the packaged app itself you will get above error. In order to avoid this you must set `PKG_EXECPATH` env set to `""`:

0 commit comments

Comments
 (0)