Saw many times that package name, but did't get when do I need to install it instead of common electron
...
我见过很多次那个包的名字,但是没有得到什么时候我需要安装它而不是普通的电子……
1 个解决方案
#1
34
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.
长期的答案是,曾经有一个叫做电子的NPM包,它与电子完全无关,所以电子团队必须用另一个名字在NPM上分配电子,因此电子是预先构建的。后来,电子包的作者好心地把名字转移给了电子团队,这样他们就可以在这个名字下发布电子,并杜绝人们不小心安装了错误的包。
#1
34
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.
长期的答案是,曾经有一个叫做电子的NPM包,它与电子完全无关,所以电子团队必须用另一个名字在NPM上分配电子,因此电子是预先构建的。后来,电子包的作者好心地把名字转移给了电子团队,这样他们就可以在这个名字下发布电子,并杜绝人们不小心安装了错误的包。