在 kylin-v10环境中搭建 electron

 

1、安装 node.js 和 npm

 

2、下载项目

 

3、运行

 

4、下载 template 项目

git clone https://github.com/umbrella22/electron-vue-template.git

 

5、安装运行

cd electron-vue-template/
npm install --registry=https://registry.npm.taobao.org

6、报错及解决方案

在安装 npm install 的时候

遇到了一个 electron@12.0.13 postinstall: `node install.js` 错误

解决方案:

npm config set electron_mirror "https://npm.taobao.org/mirrors/electron/"

然后在 npm install

posted @ 2021-08-13 13:37  王清河  阅读(276)  评论(0编辑  收藏  举报