Closed 40oleg closed 1 year ago
This issue is stale because it has been open 90 days with no activity. Remove the stale label or comment or this will be closed in 5 days. To ignore this issue entirely you can add the no-stale label
This issue is now closed due to inactivity, you can of course reopen or reference this issue if you see fit.
What version of pkg are you using?
5.7.0
What version of Node.js are you using?
16.15.1
What operating system are you using?
Windows
What CPU architecture are you using?
x86_64
What Node versions, OSs and CPU architectures are you building for?
node16-win-x64
Describe the Bug
I am using library wallpaper.js and try to pack it into executable. But when I run resulting executable, there is an error ENOENT for executable that library uses under the hood. This executable is located in node_modules. The problem that library exe-file exists inside pack, I checked it. But it can't be called for some reasons I don't understand. Just throw error ENOENT.
Expected Behavior
This must works correctly, but it doesn`t. when execFile happend program throws execption ENOENT win-wallpaper.exe. BUT, it does work if you just run it through node.js
main.js file
pkg.json which I used for compiling
To Reproduce
You can use script above and run it with node and after compile it with pkg and try to run (It throws error ENOENT). Instead of win-wallpaper.exe you can use whatever executable you want.