Is it necessary to have Node.js installed to run software with Electron?

Asked

Viewed 182 times

4

For a user to run a .exe of a software made in Electron, it needs to have Node.js urged?

2 answers

6

"It allows you to develop desktop GUI applications using front end and back end components originally created for web applications: Node.js for the back end and Chromium for the front end." - Wikipedia - Electron (software)

Returning to your question:

This person needs to have Node.js installed?

The answer is yes and nay. I’ll explain to you why!

Electron, as stated earlier, uses Node.js in its back-end. But this does not mean that the user needs Node.js installed separately.

For example: me didn’t install Node.js on my computer. But I installed Discord, which uses Electron. Which automatically installed Node.js.

When I open Discord, (courtesy) Node.js starts automatically:

Gerenciador de tarefas - Node.js

(Print of "Task Manager")

So, yes, the user needs Node.js installed. And nay, does not need to install it separately. Electron itself "prepares" the user environment.

  • I didn’t know that Node was installed as well. + 1 :) And if you don’t have Chromium, it is also installed automatically?

  • Yeah, I kind of knew that, except for the "dependencies" installation part automatically. But really, it makes the most sense. I thought everything was already embedded in the generated binary. .-.

  • When I said binary, I was referring to the executable. Node is already included in it (in .exe)? If yes, then why is it installed separately too?

  • 1

    Oh yes, I get it. Thank you for the help. :-D

2

Certainly not, the role of Electron is to interpret JS + HTML and compile a . exe (binary executable)

  • 1

    Notwithstanding the low quality, the "Certainly not" answers the question. It is interesting, yes, to substantiate the question. But the rest of the statement can lead to confusion. That’s not the point.

  • 1

    Thank you @Lipespry

Browser other questions tagged

You are not signed in. Login or sign up in order to post.