Environment
- alexa-cookie-cli version: 5.0.5
- OS: Microsoft Windows 11 Education 10.0.26200 Build 26200
- Node.js version on host: v21.7.3
Error/Description
Running the Windows binary produces the following crash on startup:
pkg/prelude/bootstrap.js:1815
throw new Error(
^
Error: [pkg] V8 rejected the bytecode cache for C:\snapshot\alexa-cookie-cli\alexa-cookie-cli.js.
This usually means the binary was built with mismatched host/target V8 (cross-platform bytecode).
Rebuild pkg with --public-packages "*" --public or --sea to avoid bytecode.
at Module._compile (pkg/prelude/bootstrap.js:1815:15)
at Object..js (node:internal/modules/cjs/loader:1917:10)
at Module.load (node:internal/modules/cjs/loader:1509:32)
at Function._load (node:internal/modules/cjs/loader:1313:12)
at Function.runMain (pkg/prelude/bootstrap.js:1878:12)
at node:internal/main/run_main_module:36:49
The pkg-bundled binary includes V8 bytecode compiled against a specific Node version. When the host Node.js version has a different V8 than what pkg targeted at build time, the bytecode cache is
rejected at runtime.
Workaround
Downgrading to v5.0.4 resolves the issue.
Environment
Error/Description
Running the Windows binary produces the following crash on startup:
The pkg-bundled binary includes V8 bytecode compiled against a specific Node version. When the host Node.js version has a different V8 than what pkg targeted at build time, the bytecode cache is
rejected at runtime.
Workaround
Downgrading to v5.0.4 resolves the issue.