安装电子

依赖

要安装电子,你必须首先安装 Node.js ,它随 npm 一起提供 。

怎么安装呢?

使用 npm :

# Install the `electron` command globally in your $PATH
npm install electron -g

# OR

# Install as a development dependency
npm install electron --save-dev