Saw many times that package name, but did't get when do I need to install it instead of common electron
...
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With