Packaging exe file possible?

Just my 2c...

Having been in this domain for a while....

Tools like pkg are no longer fit for purpose to package Node RED into an executable.

I say this here: Converting Node-RED Dashboard to Standalone .exe for Linux - #2 by marcus-j-davies
My original guide is here : Node-RED Standalone Executable - #12 by marcus-j-davies

This is mainly due to the fact that since 3.0, Noode RED is using ES Modules, and pkg simply will not work with with them - including the replacement -> GitHub - yao-pkg/pkg: Package your Node.js project into an executable

which is owned by @robertsLando (who I work with on the ZWave JS Project and others)

Attempts to use ESbuild just gets incredibly frustrating (and troublesome) - and as a beginner, you may find it extremely involved.

I'm not sure what the way is now - It was using pkg which was brilliant before Node RED started to use got (an ES Module)

2 Likes