electron快速开始

安装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

猜你喜欢

转载自www.cnblogs.com/cqroot/p/12436910.html