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. 2019嘉韦思杯线上初赛writeup

    1 土肥原贤二 看到页面怀疑是sql注入,写了个4'进去就发生报错.could not to the database You have an error in your SQL syntax; ch ...

  2. numpy的函数使用(一):np.arrange()

    arrange函数用于创建等差数组. 返回一个有起点和终点固定长的list e.g.[1, 2, 3],起点是1,终点是5,步长是1.步长相当于等差数列中的公差. 参数:可以接受1.2.3个参数. 注 ...

  3. vue---- v-bind指令

    v-bind指令用于给html标签设置属性. 基本用法 <div id="app"> <div v-bind:id="id1">文字&l ...

  4. Netty 线程模型

    一.线程模型概述 线程模型表明了代码的执行方式.从最开始的使用单线程,后来出现了多线程,之后是线程池.当有要执行的任务时,任务会被传到线程池,从线程池中获得空闲的线程来执行任务,执行完了后会将线程返回 ...

  5. spring boot 的参数配置。

    https://blog.csdn.net/baidu_24237655/article/details/72772402

  6. centos7进单用户

    当重启linux系统,进入系统选择页面的时候,按e 在linux16那一行最后面添加 init=/bin/sh 按ctrl+c 挂载根分区,可读写 mount / -o rw, remount

  7. Maven 新手入门+命令大全

    Maven 是一个项目管理工具,可以对 Java 项目进行构建.依赖管理. Maven 官方文档(English): http://maven.apache.org/index.html Maven ...

  8. 弹出的 Dialog 里,包含 Form,如何在关闭 Dialog 时,执行 resetFields(对整个表单进行重置,将所有字段值重置为初始值并移除校验结果)

    做法: before-close 事件中,调用 resetFields 取消按钮事件中,调用 resetFields <el-dialog title="弹出窗口" :vis ...

  9. Zabbix 3.4 服务端安装部署

    关于zabbix的安装部署官方也提供了详细的安装文档,链接如下: https://www.zabbix.com/download 选择zabbix的版本,服务器平台及使用的数据库 安装和配置zabbi ...

  10. 安装owncloud出现:Error while trying to create admin user: An exception occurred while executing

    安装owncloud出现:Error while trying to create admin user: An exception occurred while executing 1.安装ownc ...