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
{{ message }}
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.
I am trying to pack node JS application into a linux executable. I am using node-libcurl and time node modules which are installed using --build-from-source. Node JS app is executing only when node-libcurl & time modules are present inside node_modules directory (at the same level of app executable). Is there any way to pack native modules, so that we can just distribute a single executable file?
The text was updated successfully, but these errors were encountered:
Native addons (.node files) use is supported, but packaging .node files inside the executable is not resolved yet. You have to deploy native addons used by your project to the same directory as the executable.
When a package, that contains a native module, is being installed, the native module is compiled against current system-wide Node.js version. Then, when you compile your project with pkg, pay attention to --target option. You should specify the same Node.js version as your system-wide Node.js to make compiled executable compatible with .node files.
I am trying to pack node JS application into a linux executable. I am using node-libcurl and time node modules which are installed using --build-from-source. Node JS app is executing only when node-libcurl & time modules are present inside node_modules directory (at the same level of app executable). Is there any way to pack native modules, so that we can just distribute a single executable file?
The text was updated successfully, but these errors were encountered: