compressing
compressing copied to clipboard
uncompress error: Error: incorrect header check
pack.zip是axios请求createWriteStream下载而来的
compressing.tgz.uncompress(path.join(__dirname, '../../pack.zip'), 'package').then(res => {
console.log('uncompress success')
// 解压之后,重启应用即可
app.relaunch()
app.exit(0)
}).catch(err => {
// 记录错误日志
console.log(`uncompress error: ${err.toString()}`)
})
启动后报了这个问题
The parser is mismatched and thats why you get incorrect header check error.
Simply replace tgz with zip will resolve the issue.
The parser is mismatched and thats why you get
incorrect header checkerror.Simply replace
tgzwithzipwill resolve the issue.
compressing.zip.uncompress(path.join(__dirname, '../../pack.zip'), 'package').then(res => {
console.log('uncompress success')
// 解压之后,重启应用即可
app.relaunch()
app.exit(0)
}).catch(err => {
// 记录错误日志
console.log(`uncompress error: ${err.toString()}`)
})
Thanks, I also encountered this problem.