npm run buildwin

> study01@1.0.0 buildwin F:\Nodejs\electron\Test\study01
> electron-builder --platform=win --arch=x64

• electron-builder version=20.28.4
• loaded configuration file=package.json ("build" field)
• Specified application directory equals to project dir — superfluous or wrong configuration appDirectory=./
• description is missed in the package.json appPackageFile=F:\Nodejs\electron\Test\study01\package.json
• writing effective config file=dist\builder-effective-config.yaml
• no native production dependencies
• packaging platform=win32 arch=x64 electron=2.0.9 appOutDir=dist\win-unpacked
• cannot unpack electron zip file, will be re-downloaded error=zip: not a valid zip file
⨯ zip: not a valid zip file

Error: D:\Program Files\node-v8.9.3-win-x64\node_modules\electron-builder\node_modules\_app-builder-bin@2.1.2@app-builder-bin\win\x64\app-builder.exe exited with code 1
at ChildProcess.childProcess.once.code (D:\Program Files\node-v8.9.3-win-x64\node_modules\electron-builder\node_modules\_builder-util@6.1.3@builder-util\src\util.ts:254:14)
at Object.onceWrapper (events.js:317:30)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
From previous event:
at Promise.longStackTracesCaptureStackTrace [as _captureStackTrace] (D:\Program Files\node-v8.9.3-win-x64\node_modules\electron-builder\node_modules\_bluebird@3.5.2@bluebird\js\release\debuggability.js:411:19)
at Promise._then (D:\Program Files\node-v8.9.3-win-x64\node_modules\electron-builder\node_modules\_bluebird@3.5.2@bluebird\js\release\promise.js:232:17)
at Promise.then (D:\Program Files\node-v8.9.3-win-x64\node_modules\electron-builder\node_modules\_bluebird@3.5.2@bluebird\js\release\promise.js:125:17)
at Object.args [as handler] (D:\Program Files\node-v8.9.3-win-x64\node_modules\electron-builder\src\cli\cli.ts:42:48)
at Object.runCommand (D:\Program Files\node-v8.9.3-win-x64\node_modules\electron-builder\node_modules\_yargs@12.0.2@yargs\lib\command.js:238:44)
at Object.parseArgs [as _parseArgs] (D:\Program Files\node-v8.9.3-win-x64\node_modules\electron-builder\node_modules\_yargs@12.0.2@yargs\yargs.js:1085:24)
at Object.get [as argv] (D:\Program Files\node-v8.9.3-win-x64\node_modules\electron-builder\node_modules\_yargs@12.0.2@yargs\yargs.js:1000:21)
at Object.<anonymous> (D:\Program Files\node-v8.9.3-win-x64\node_modules\electron-builder\src\cli\cli.ts:25:28)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Function.Module.runMain (module.js:676:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! study01@1.0.0 buildwin: `electron-builder --platform=win --arch=x64`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the study01@1.0.0 buildwin script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\dong\AppData\Roaming\npm-cache\_logs\2018-09-12T23_36_21_615Z-debug.log

========================================

C:\Users\dong\AppData\Local\electron\Cache\electron-v2.0.9-win32-x64.zip   这个文件损坏删除   重新运行由于网速慢,可能还会报错,可下载将文件复制到此目录下,重新执行打包命令即可解决

地址:https://github.com/electron/electron/releases/download/v2.0.9/electron-v2.0.9-win32-x64.zip

electron builder 打包错误 cannot unpack electron zip file 解决方案的更多相关文章

  1. electron builder 打包多个第三方依赖的软件

    背景 在实际的开发过程中,我们最后打包生成的exe.会依赖一些第三方的软件,或者说是一些系统的环境,比如 .net framework vc++ 等,这些环境不能依赖客户的环境,所以最好的做法是在打包 ...

  2. Eclipse中mvn install 报错error in opening zip file

    报错信息 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (de ...

  3. Electron – 项目报错整理(打包~1): WARNING: Make sure that .NET Framework 4.5 or later and Powershell 3 or later are installed, otherwise extracting the Electron zip file will hang.

    WARNING: Make sure that .NET Framework 4.5 or later and Powershell 3 or later are installed, otherwi ...

  4. Electron安装打包指南

    当前环境Debian Linux-Deepin 安装Node 直接下载 命令下载 下载 wget https://nodejs.org/dist/v14.15.1/node-v14.15.1-linu ...

  5. Electron 发生错误 "Cannot find module app"的解决方案

    运行一个electron小demo出现的一个错误信息:Cannot find module app 原代码如下所示: var app = require('app'); var BrowserWind ...

  6. Spring Boot项目使用maven-assembly-plugin根据不同环境打包成tar.gz或者zip

    spring-boot-assembly 在spring boot项目中使用maven profiles和maven assembly插件根据不同环境打包成tar.gz或者zip 将spring bo ...

  7. 记一个mvn奇怪错误: Archive for required library: 'D:/mvn/repos/junit/junit/3.8.1/junit-3.8.1.jar' in project 'xxx' cannot be read or is not a valid ZIP file

    我的maven 项目有一个红色感叹号, 而且Problems 存在 errors : Description Resource Path Location Type Archive for requi ...

  8. linux下解压大于4G文件提示error: Zip file too big错误的解决办法

    error: Zip file too big (greater than 4294959102 bytes)错误解决办法.zip文件夹大于4GB,在centos下无法正常unzip,需要使用第三方工 ...

  9. error in opening zip file 1 错误

    项目部署服务启动时会出现: error in opening zip file 1 错误 原来是不同服务器编译过的jar包直接下载后发布有问题,重新上传本地编译好的lib下面的jar包后,启动服务,正 ...

随机推荐

  1. spring注解注入:<context:component-scan>详解

    spring从2.5版本开始支持注解注入,注解注入可以省去很多的xml配置工作.由于注解是写入java代码中的,所以注解注入会失去一定的灵活性,我们要根据需要来选择是否启用注解注入. 我们首先看一个注 ...

  2. Exp2 后门原理与实践 毛瀚逸 20164318

    Exp2 后门原理与实践 20164318 毛瀚逸 一.实验内容 基础问题回答: 1.例举你能想到的一个后门进入到你系统中的可能方式? 答:下载奇怪的文件并运行,通过操作系统的漏洞来获取电脑的高级权限 ...

  3. Unity安卓打包遇到的问题。

    1, android asset packinging tool failed. "路径" package -v -f -F assets.ap_ - Assets found X ...

  4. vue添加class类名

    <!DOCTYPE HTML> <html lang="en-US"> <head> <meta charset="UTF-8& ...

  5. zabbix使用邮箱告警

    目的:使用自己的邮箱(目前我使用的是腾讯企业邮箱)发送告警邮件 1.配置Email:管理->报警媒介类型->Email->修改对应Email参数 2.修改admin用户的报警媒介Em ...

  6. stolon cloud native postgresql 高可用方案

    stolon方案与patroni 类似,是一个新的pg ha 方案 包含的组件 keeper:它管理一个PostgreSQL实例,汇聚到由领导者sentinel计算的clusterview. sent ...

  7. centos7 升级openssh到openssh-8.0p1版本

    环境介绍 centos7.3和centos7.6升级完毕测试登录ssh以及重启后登录ssh均无问题. 前期请自行配置好yum源(如果不会请百度) 整个过程不需要卸载原先的openssl包和openss ...

  8. QPainter绘制遇到的小问题

    1.Qt绘图基础 (1)绘图需画笔和画布: QPainter 相当于Qt中的一个画笔,绘制时需要一块画布, Qt中扮演画布角色的组件为QPaintDevice和他的各个子类,如: QWidget, Q ...

  9. HTML5 video 播放视频黑屏

    <video width="320" height="240" controls>        <source src="movi ...

  10. Kettle解决方案: 第二章 Kettle基本概念

    2概述 设计模块最主要的操作分为: 转换和作业 选择转换和作业后就可以选择对应主对象树和核心对象 主对象树大同小异 核心对象是不同的 比如转换需要用到的CSV表输入, 表输入等都在这里可以选择 而作业 ...