Electron-based Windows desktop application development_Environmental Construction
1. Install node.js
Install Node.js and npm if you don't already have them on your machine.
2. Install electron
Enter directly on the command line under windows system
npm install -g electron-prebuilt
After global installation, you can use the electron tool on the command line, you can also start the application through electron, and of course you can choose to install locally.
3. Install electron-packager
Under windows system:
npm install -g electron-packager
4. Install vscode
Recommend a more commonly used editor: vscode
5. Use Taobao NPM mirror
Everyone knows that it is very slow to directly use the official image of npm in China. It is recommended to use the Taobao NPM image here.
Taobao NPM mirror is a complete npmjs.org mirror, you can use this instead of the official version (read-only), the synchronization frequency is currently once every 10 minutes to ensure that it is synchronized with the official service as much as possible.
You can use Taobao's customized cnpm (gzip compression support) command line tool instead of the default npm:
$ npm install -g cnpm --registry=https://registry.npm.taobao.org
This way you can use the cnpm command to install the module:
$ cnpm install [name]