Re: Is it possible to build node package as single executable binary?

From: Miroslav Lachman <>
Date: Sun, 25 Jun 2023 14:21:02 UTC
On 25/06/2023 10:21, Hiroki Tagato wrote:
> Hi,


>> Do you know why this packaged "bw" needs /tmp to be executable while 
>> "bw" installed by "npm install" works with noexec set on /tmp?
> It appears native node modules have to be written on the disk before 
> being executed. There is an explanatory comment at the following URL:
>> Is there a way to fix it? I really would like to keep /tmp noexec.
> The path the native module written to seems TMPDIR-aware. So one 
> workaround would be setting TMPDIR somewhere other than "/tmp".

Thank you for the explanation, you are right. I tested it on Debian now 
at it failed the same way.
I will remount /tmp or will try to push TMPDIR env in to scripts using "bw".

Kind regards
Miroslav Lachman