npm -g electron
如果npm安装electron卡在node install.js 不动的话,在~/.npmrc
里面添加:
electron_mirror="https://cdn.npm.taobao.org/dist/electron/"
# 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
原文:https://www.cnblogs.com/cqroot/p/12436910.html