Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

produced executable exits with return code 4 #709

Closed
gautaz opened this issue Jun 4, 2019 · 2 comments
Closed

produced executable exits with return code 4 #709

gautaz opened this issue Jun 4, 2019 · 2 comments

Comments

@gautaz
Copy link

gautaz commented Jun 4, 2019

Hello,

One of our bundled services fails to start correctly once bundled with pkg.
It exits directly with return code 4.

Looking at pkg sources, this can possibly be related to a VERSION_MISMATCH but this is quite obscure to me.

Maybe someone can shed some light on what causes such an exit code?

@gurisko
Copy link

gurisko commented Aug 17, 2020

Hi @gautaz . I bumped into this too. It is a mismatch between your NODE_OPTIONS variable and the built executable. I managed to work around this by unsetting the variable before building running the executable.

@gautaz
Copy link
Author

gautaz commented Aug 17, 2020

Thanks @gurisko, since then we have moved to nexe but perhaps we'll go back to pkg later on :-).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants