electron Mac 打包,出现:cannot unpack
2020-12-28 本文已影响0人
_compass
electron Mac 打包,出现:cannot unpack electron zip file, will be re-downloaded error=zip: not a valid zip file
等了许久也没下载成功:
• downloading url=https://npm.taobao.org/mirrors/electron/4.0.0/electron-v4.0.0-darwin-x64.zip size=55 MB parts=8
• retrying attempt=1
• retrying attempt=1
• retrying attempt=1
• retrying attempt=1
• downloaded url=https://npm.taobao.org/mirrors/electron/4.0.0/electron-v4.0.0-darwin-x64.zip duration=4m23.809s
• cannot unpack electron zip file, will be re-downloaded error=zip: not a valid zip file
• downloading url=https://npm.taobao.org/mirrors/electron/4.0.0/electron-v4.0.0-darwin-x64.zip size=55 MB parts=8
手动下载可以解决此问题:
先打开https://npm.taobao.org/mirrors/electron/4.0.0/ 网址,
再将mac上的zip包,和对应的SHASUMS256.txt文件都下载下来,放到本机的:
~/Library/Caches/electron目录下:
接着重新打包即可。