Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between electron and electron-prebuilt?

Saw many times that package name, but did't get when do I need to install it instead of common electron...

like image 956
GProst Avatar asked Jan 10 '17 17:01

GProst


People also ask

What is electron prebuilt?

Install Electron prebuilt binaries for command-line use using npm. This module helps you easily install the electron command for use on the command line without having to compile anything. Electron is a JavaScript runtime that bundles Node. js and Chromium.

Is electron an NPM package?

If you've ever worked on an Electron app before, you've likely come across the electron-prebuilt npm package. This package is an indispensable part of nearly every Electron project.


1 Answers

The short answer is if you want to write an Electron app today you should forget electron-prebuilt ever existed and always install the electron package instead.

The long answer is that there used to be an NPM package called electron that was completely unrelated to Electron, so the Electron team had to use another name to distribute Electron on NPM, hence electron-prebuilt. Later on the author of the electron package kindly transferred the name to the Electron team so that they could publish Electron under that name, and put an end to people accidentally installing the wrong package.

like image 161
Vadim Macagon Avatar answered Oct 21 '22 17:10

Vadim Macagon