美文网首页
electron Mac 打包,出现:cannot unpack

electron Mac 打包,出现:cannot unpack

作者: _compass | 来源:发表于2020-12-28 14:18 被阅读0次

    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目录下:

    image.png

    接着重新打包即可。

    相关文章

      网友评论

          本文标题:electron Mac 打包,出现:cannot unpack

          本文链接:https://www.haomeiwen.com/subject/staznktx.html