当前位置:网站首页>Electron installation problems
Electron installation problems
2022-07-05 18:08:00 【Han Mo Mingshang】
Project input : npm config edit
stay registry Add... Below , And replaced registry
registry=https://registry.npm.taobao.org/
disturl=https://npm.taobao.org/mirrors/node
electron_mirror=https://cdn.npm.taobao.org/dist/electron/
sass_binary_site=https://npm.taobao.org/mirrors/node-sass/install electron Failure postinstall: `node install.js`
npm config set electron_mirror "https://npm.taobao.org/mirrors/electron/"Electron Preloading :
newly build preload.js stay src below
preload.js:
var electron_re=require('electron')
window.electron=electron_remain.js:
const {
BrowserWindow,
} = require('electron')
new BrowserWindow({
width: 1100,
height: 720,
minWidth: 1100,
minHeight: 720,
webPreferences: {
nodeIntegration: true,
preload: path.join(__dirname, '/preload.js'),
nativeWindowOpen: true,
contextIsolation: false,// need false
webSecurity: false
},
icon: `${__static}/icon/favicon.ico`
})
win.loadURL('app://./index.html')vue.config.js:
module.exports = {
pluginOptions:{
electronBuilder:{
preload:'src/preload.js',
target: "electron-renderer"
}
}
}Possible problems in packaging
* 1. Download when packaging electron-v.xxxx.zip File failed
* terms of settlement : Download the files of the corresponding version and packaging platform directly from the file library of Taobao , After downloading, put it in C:\Users\Administrator\AppData\Local\electron\Cache Under this catalog
* 2. Download when packaging winCodeSign-v.xxx.7z File failed
* Download address :https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.5.0/winCodeSign-2.5.0.7z
* After downloading, unzip it and put it C:\Users\Administrator\AppData\Local\electron-builder\Cache\winCodeSign Under the table of contents
* 3. Download when packaging nsis-v.xxx.7z File failed
* Download address :https://github.com/electron-userland/electron-builder-binaries/releases/download/nsis-3.0.3.2/nsis-3.0.3.2.7z
* After downloading, unzip it and put it C:\Users\Administrator\AppData\Local\electron-builder\Cache\nsis
* 4. Download when packaging nsis-resources-v.xxx.7z File failed
* Download address :https://github.com/electron-userland/electron-builder-binaries/releases/download/nsis-resources-3.4.1/nsis-resources-3.4.1.7z
* After downloading, unzip it and put it C:\Users\Administrator\AppData\Local\electron-builder\Cache\nsis\nsis-resources-3.4.1
边栏推荐
- Star ring technology data security management platform defender heavy release
- 隐私计算助力数据的安全流通与共享
- 【PaddleClas】常用命令
- What are the changes in the 2022 PMP Exam?
- rsync
- 含重复元素取不重复子集[如何取子集?如何去重?]
- Penetrate the whole intranet through socks agent
- 小白入门NAS—快速搭建私有云教程系列(一)[通俗易懂]
- ITK Example
- Huaxia Fund: sharing of practical achievements of digital transformation in the fund industry
猜你喜欢

node_exporter内存使用率不显示

Tencent music launched its new product "quyimai", which provides music commercial copyright authorization

nano的CAN通信
![含重复元素取不重复子集[如何取子集?如何去重?]](/img/b2/d019c3f0b85a6c0d334a092fa6c23c.png)
含重复元素取不重复子集[如何取子集?如何去重?]

Wu Enda team 2022 machine learning course, coming

Simulate the hundred prisoner problem

Le cours d'apprentissage de la machine 2022 de l'équipe Wunda arrive.

Nanjing University: Discussion on the training program of digital talents in the new era

Isprs2022 / Cloud Detection: Cloud Detection with Boundary nets Boundary Networks Based Cloud Detection

What are the changes in the 2022 PMP Exam?
随机推荐
《2022中国信创生态市场研究及选型评估报告》发布 华云数据入选信创IT基础设施主流厂商!
Introduction to Resampling
The easycvr platform reports an error "ID cannot be empty" through the interface editing channel. What is the reason?
ITK Example
Star ring technology data security management platform defender heavy release
To solve the stubborn problem of Lake + warehouse hybrid architecture, xinghuan Technology launched an independent and controllable cloud native Lake warehouse integrated platform
Elk log analysis system
node_ Exporter memory usage is not displayed
登录连接 CDB 和 PDB
[TestLink] testlink1.9.18 solutions to common problems
Zabbix
ISPRS2020/云检测:Transferring deep learning models for cloud detection between Landsat-8 and Proba-V
ISPRS2022/云检测:Cloud detection with boundary nets基于边界网的云检测
Delete some elements in the array
通过SOCKS代理渗透整个内网
修复漏洞 - mysql 、es
Fix vulnerability - mysql, ES
寻找第k小元素 前k小元素 select_k
"Xiaodeng in operation and maintenance" is a single sign on solution for cloud applications
彻底理解为什么网络 I/O 会被阻塞?