electron builder 打包错误 cannot unpack electron zip file 解决方案
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 解决方案的更多相关文章
- electron builder 打包多个第三方依赖的软件
背景 在实际的开发过程中,我们最后打包生成的exe.会依赖一些第三方的软件,或者说是一些系统的环境,比如 .net framework vc++ 等,这些环境不能依赖客户的环境,所以最好的做法是在打包 ...
- 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 ...
- 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 ...
- Electron安装打包指南
当前环境Debian Linux-Deepin 安装Node 直接下载 命令下载 下载 wget https://nodejs.org/dist/v14.15.1/node-v14.15.1-linu ...
- Electron 发生错误 "Cannot find module app"的解决方案
运行一个electron小demo出现的一个错误信息:Cannot find module app 原代码如下所示: var app = require('app'); var BrowserWind ...
- Spring Boot项目使用maven-assembly-plugin根据不同环境打包成tar.gz或者zip
spring-boot-assembly 在spring boot项目中使用maven profiles和maven assembly插件根据不同环境打包成tar.gz或者zip 将spring bo ...
- 记一个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 ...
- linux下解压大于4G文件提示error: Zip file too big错误的解决办法
error: Zip file too big (greater than 4294959102 bytes)错误解决办法.zip文件夹大于4GB,在centos下无法正常unzip,需要使用第三方工 ...
- error in opening zip file 1 错误
项目部署服务启动时会出现: error in opening zip file 1 错误 原来是不同服务器编译过的jar包直接下载后发布有问题,重新上传本地编译好的lib下面的jar包后,启动服务,正 ...
随机推荐
- hbase整合
hbase與hive整合 1. hive中有數據 --> 創建hive管理表映射hbase 例如: 1)hive創建內部表 create tabl ...
- robot framework关键词记录单(更新中)
1.select Radio Button groupname value 选择单选按钮 A)适用于input的html单选框,属性中包含name以及value如:Select Radio Butt ...
- Oracle—通过操作系统进程查看数据库sql语句
工作中遇到一个问题,某报表运行时间特别长,通过操作系统可以看到一个oracle进程消耗资源比较大,如何能够通过该操作系统进程找到具体SQL呢.记录如下: 1.查看Linux系统进程号 可以通过top动 ...
- Flagr 架构
来自官方文档 https://checkr.github.io/flagr/#/flagr_overview There are three components in the flagr, Flag ...
- [转]Linux编译和安装boost库
1. 下载boost安装包并解压缩 到http://www.boost.org/下载boost的安装包,以boost_1_58_0.tar.gz为例 下载完成后进行解压缩: tar zxvf boos ...
- Linux基础入门-文件打包与解压缩
文件打包与解压缩: Windows上常见的压缩文件后缀有*.zip(zip程序打包压缩), *.rar(rar程序压缩), *.7z(7zip程序压缩),在Linux上常见的还有*.gz(gzip程序 ...
- centos7 php-apache镜像添加redis/memcache/gd/mysql_pdo/mysqli/imagick
FROM php:5.6-apache-stretch RUN /usr/local/bin/docker-php-ext-install mysqli pdo_mysql; \ && ...
- http摘要认证
摘要认证步骤: 1. 客户端访问一个受http摘要认证保护的资源. 2. 服务器返回401状态以及nonce等信息,要求客户端进行认证. HTTP/1.1 401 Unauthor ...
- 在IE中下载Office2007文件时在对话框中下载文件变成ZIP文件的问题
导致原因: 从IIS或者Tomcat之类的Web服务器通过二进制流下载文件时(比如通过设置Header为Content-disposition:inline),如果被下载的文件是Office2007的 ...
- aspnetcore 日志 serilog-aspnetcore
serilog-aspnetcore https://github.com/serilog/serilog-aspnetcore public static void Main(string[] ar ...