Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

if I were to compile a node.js electron app to an .exe file, would I need Node installed to run it?

I'm trying to compile a node.js electron application to executables. If I managed to do this, would the person who runs the app need node.js installed to run it?

like image 494
Bjørnar Vikhagen Avatar asked Apr 11 '19 12:04

Bjørnar Vikhagen


People also ask

Do you need node to run Electron?

To use Electron, you need to install Node. js. We recommend that you use the latest LTS version available.

How do I export an Electron app to an EXE?

How do you make an Electron app executable? Create the Electron based Syncfusion Application as mentioned in this link. Then package the application using Electron Packager, once packing completed JS_Electron-win32-ia32 folder will be created with Electron package file.

Does node js need to be compiled?

Standard Node. js is built against V8, which compiles every Javascript code snippet into native instructions. You may use --print_code flag in the command line to see which scripts are getting compiled, and compiled into what.


1 Answers

No, the person would not need separate Node.js installed.

By embedding Chromium and Node.js into its binary, Electron allows you to maintain one JavaScript codebase and create cross-platform apps that work on Windows, macOS, and Linux — no native development experience required.

Source: https://www.electronjs.org/docs/latest

like image 155
Yuri Tkachenko Avatar answered Oct 03 '22 11:10

Yuri Tkachenko