创建工程命令
npm install -g vue-cli //全局安装
vue init simulatedgreg/electron-vue my-project //创建工程
cd 目录路径
npm install // 安装模块
如果出现下面信息,更新下对应的模块
deprecate babili-webpack-plugin@0.1.2 › babel-preset-babili@^0.1.4 babili has been renamed to babel-minify. Please update to babel-preset-minify
deprecate css-loader@0.28.11 › cssnano@3.10.0 › autoprefixer@6.7.7 › browserslist@^1.7.6 Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
运行看看是否可以成功打开
npm run dev
后续2018.11
使用最新的vue/cli创建
npm uninstall -g vue-cli
npm install -g @vue/cli
npm install -g @vue/cli-init
vue init simulatedgreg/electron-vue my-project
npm i -g yarn
yarn
yarn run dev
npm install --save-dev electron@latest