安装Electron
npm -g electron
如果npm安装electron卡在node install.js 不动的话,在~/.npmrc
里面添加:
electron_mirror="https://cdn.npm.taobao.org/dist/electron/"
使用electron-quick-start
# Clone this repository
git clone https://github.com/electron/electron-quick-start
# Go into the repository
cd electron-quick-start
# Install dependencies
npm install
# Run the app
npm start