Factsheet
Videos
ยป npm install windows-build-tools
I maybe very late but you can use "nexe" module that compile nodejs + your script in one executable: https://github.com/crcn/nexe
EDIT 2021: Nexe's latest release is from 2017 and it appears that development has otherwise slowed, so the more-widely-used alternative from Vercel should also be considered these days: pkg
Node.js runs on top of the V8 Javascript engine, which itself optimizes performance by compiling javascript code into native code... so no reason really for compiling then, is there?
https://developers.google.com/v8/design#mach_code
I'm developing an application that should run without the user having node installed. I found compilers like pkg and nexe, which work great, but they don't really compile. Afaik they just wrap the code in a whole node installation. This means that ever code compiled by nexe is at least 50 mb or so (pkg got it down to 38 or so, but still big and I think less supported). Is there a true nodejs compiler? It can't be that hard to program one, after all someone programmed nodejs which is just a live compiler. Are there just to few people who want this?