You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -414,6 +414,9 @@ This error is tracked by issue [#16](https://github.com/yao-pkg/pkg/issues/16#is
414
414
415
415
In most cases adding `--options experimental-require-module` to `pkg` command line will solve the issue.
416
416
417
+
> [!NOTE]
418
+
> This option is not needed anymore starting from NodeJS v22.12.0
419
+
417
420
### Error: Cannot find module XXX (when using `child_process`)
418
421
419
422
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