1、安裝nodejs和npm
官網下載地址:https://nodejs.org/en/download/
安裝包:下載.msi
安裝完成后:
nodejs、npm都會安裝好,path環境變量也自動設置好了。
2、使用taobao npm 鏡像
http://npm.taobao.org/
npm install -g cnpm --registry=https://registry.npm.taobao.org
3、安裝Electron
cnpm install electron-prebuilt -g
4、安裝git
5、electron-quick-start
在github上獲取electron官方示例。
https://github.com/atom/electron-quick-start
git clone https://github.com/atom/electron-quick-start
npm install && npm start
成功
6、安裝NTVS
用vs開發node.js
https://github.com/Microsoft/nodejstools/releases/tag/v1.1