已经打包好的适合在mips平台运行的electron-quick-start,点击下载
1. 安装electron前的准备
从http://www.loongnix.org/index.php/Electron下载所需软件包,本文应该对大多数版本有效,以electron-v6.1.7为例
将tar包解开,重新压缩成zip包
$ cd
$ tar xzf electron_v6.1.7_0.6.tar.gz
$ cd electron_v6.1.7_0.6
$ zip -r electron-v6.1.7-linux-mips64el.zip ./*
2. 本地安装electron
如果,当前网络不能有效的安装electron,建议将npm的镜像源地址修改为国内源
$ npm config set registry https://registry.npm.taobao.org
** 下载hello,world项目**
$ git clone https://github.com/electron/electron-quick-start.git
$ cd electron-quick-start/
$ git checkout remotes/origin/6-x-y
2.1 本地安装方法一
a)安装依赖的模块
$ npm install electron@6.1.7
在出现> node install.js 使用ctrl+c停止,如下图:
b)更改install.js
$ vim node_modules/electron/install.js
找到下载electron的地方,在6.1.7的instal.js中是如下的代码
// downloads if not cached
download(

&spm=1001.2101.3001.5002&articleId=113173549&d=1&t=3&u=a3adaab7df184b70a9f020e38f3313eb)
144

被折叠的 条评论
为什么被折叠?



