Packing Node.js-Scripts + node.exe into a single Executable [duplicate]

You absolutely can, and it's pretty easy with JXcore.

Once you have JXcore installed on windows, all you have to do is run:

jx package app.js "myAppName" -native

This will produce a .exe file that you can distribute and can be executed without any external dependencies whatsoever (you don't even need JXcore nor Node.js on the system).

Here's the documentation on that functionality: https://github.com/jxcore/jxcore/blob/master/doc/api/jxcore-feature-packaging-code-protection.markdown

(Duplicate of https://stackoverflow.com/a/27551233/810830)