We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
6.3.1
v22.14.0
macOS
Apple M2
node22-linux-x64
On my Apple (M2) laptop:
npx pkg --targets node22-linux-x64 --output main --debug main.js
I don't see anything unusual in the debug output.
On the Linux server:
DEBUG_PKG=2 ./main
output:
[...] fs.existsSync [ '/snapshot/src/main.js' ] fs.statSync [ '/snapshot/src/main.js' ] fs.readSync [] fs.realpathSync [ '/snapshot/src/main.js' ] fs.readFileSync [ '/snapshot/src/main.js', 'utf8' ] fs.readSync []
echo $?
4
The binary works when using the --public option for "building":
--public
npx pkg --targets node22-linux-x64 --output main --debug --public main.js
The created binary should work.
https://github.com/michaelwittig/pkgbug
The text was updated successfully, but these errors were encountered:
@michaelwittig is this happening only with nodejs 22?
cc @faulpeltz
Sorry, something went wrong.
No branches or pull requests
What version of pkg are you using?
6.3.1
What version of Node.js are you using?
v22.14.0
What operating system are you using?
macOS
What CPU architecture are you using?
Apple M2
What Node versions, OSs and CPU architectures are you building for?
node22-linux-x64
Describe the Bug
On my Apple (M2) laptop:
I don't see anything unusual in the debug output.
On the Linux server:
output:
output:
The binary works when using the
--public
option for "building":Expected Behavior
The created binary should work.
To Reproduce
https://github.com/michaelwittig/pkgbug
The text was updated successfully, but these errors were encountered: