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
When I am trying to package my app with pkg, i am getting this error:
Error: No native build was found for platform=win32 arch=x64 runtime=node abi=72 uv=1 libc=glibc node=12.18.1
loaded from: C:\snapshot\callWinapi\node_modules\ffi-napi\node_modules\ref-napi
at Function.path (C:\snapshot\callWinapi\node_modules\node-gyp-build\index.js:59:9)
at load (C:\snapshot\callWinapi\node_modules\node-gyp-build\index.js:21:30)
at Object.<anonymous> (C:\snapshot\callWinapi\node_modules\ffi-napi\node_modules\ref-napi\lib\ref.js:8:53)
at Module._compile (pkg/prelude/bootstrap.js:1320:22)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1156:10)
at Module.load (internal/modules/cjs/loader.js:984:32)
at Function.Module._load (internal/modules/cjs/loader.js:877:14)
at Module.require (internal/modules/cjs/loader.js:1024:19)
at Module.require (pkg/prelude/bootstrap.js:1225:31)
at require (internal/modules/cjs/helpers.js:72:18)
Is is possible to package my app to .ece executable for windows using pkg or somthing else with includes ref-napi and ffi-napi?
The text was updated successfully, but these errors were encountered:
If you do want to use native addons with pkg, that should be possible, but you need to include the (already-built) native addons themselves in that case, separately from the binary. I don’t know where exactly they would need to be put, though.
I’ve built boxednode as an alternative to pkg that supports actually bundling native addons into the executable, but it compiles Node.js from source, which takes a long time, so it might also not be a right choice here. I also haven’t tried to use it with ffi-napi/ref-napi/etc..
When I am trying to package my app with pkg, i am getting this error:
Is is possible to package my app to .ece executable for windows using pkg or somthing else with includes ref-napi and ffi-napi?
The text was updated successfully, but these errors were encountered: