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. mongoDB数据库的安装与配置

    noSql数据库MongoDB的安装地址:https://www.mongodb.com/download-center?jmp=nav#community 选择相应的版本进行下载,在此以window ...

  2. vba data to input tool

    public Sub InserDb() dim maxrow as integer dim maxcol as integer dim ddl as string dim recode as str ...

  3. ue4 StringTable

    StringTable 用法很简单可以参考 https://blog.csdn.net/u012801153/article/details/80393531 这里只说说上面文章中没提到的小技巧  T ...

  4. div介绍 盒子模型边框属性 CSS初始化 文字排版 边框调整 溢出

    今天学习的div,了解了div是干什么用的掌握了什么是盒子模型,以及div的外边距内边距以及边框,运用div和CSS给文字排版,利用边框的来做图像,div溢出的处理 CSS初始化: 精确排版的时候用这 ...

  5. LinkedList浅析

    LinkedList浅析 LinkedList是Collection下的一个list实现,就像ArrayList一样. 和ArrayList不同的是它是链表结构,而ArrayList是顺序结构.我们平 ...

  6. 引擎设计跟踪(九.14.3) deferred shading 准备

    目前做的一些准备工作 1.depth prepass for forward shading. 做depth prepass的原因是为了完善渲染流程, 虽然架构上支持多个pass, 但实际上从来没有测 ...

  7. Mac使用

    安装you-get: 用到mac下安装软件的工具:brew 百度搜brew到官网首页照说明在终端执行一段指令 安装方法:命令行输入 /usr/bin/ruby -e "$(curl -fsS ...

  8. docker(基础篇)

    http://naotu.baidu.com/file/f02773930afb2d3d9e71621249099d31 centos7安装  https://yq.aliyun.com/articl ...

  9. 在kerberos认证过程中Active Directory的作用

    LDAP介绍 1),ladp(Lightweight Directory Access Protocol),轻量级目录访问协议,提供被称为目录服务的信息服务,特别是基于X.500(构成全球分布式的目录 ...

  10. gerrit工具的数据提交流程

    检查服务器有没有更新:1.检查服务器有没有更新git fetch如果有内容,代表服务器版本有更新,需要把本机修改暂存(第二步),拉下服务器内容(第三步)如果没有内容,代表服务器没有更新,跳至52.本地 ...