uncompress error: Error: incorrect header check
qiufeihong2018 opened this issue · 2 comments
qiufeihong2018 commented
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()}`)
})
启动后报了这个问题
portwatcher commented
The parser is mismatched and thats why you get incorrect header check
error.
Simply replace tgz
with zip
will resolve the issue.
songpengyuan commented
The parser is mismatched and thats why you get
incorrect header check
error.Simply replace
tgz
withzip
will 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.