友情关注:2021年底即将推出我们墨飞鱼团队历时大半年研发的灵感写作平台,将会为微信读书的用户提供免费的笔记素材整理工具,借助全球领先的NLP AI模型与百万金句素材数据库,助力您的写作灵感火花不断, 敬请收藏关注这个地址,12月底见哦~
electron-Vue应用打包
问题描述
执行命令:
npm run build
执行命令过程中可能会碰到如下问题:
Get "https://github.com/electron/electron/releases/download/v8.2.0/electron-v8.2.0-win32-ia32.zip": read tcp 192.168.0.104:53371->52.74.223.119:443: wsarecv: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
原因及解决方法
原因:网络中断或需要科学上网
解决办法:手动下载
手动下载electron-v8.2.0-win32-ia32.zip,复制报错信息中指向github上该文件的链接即可下载。然后放到以下目录(Administrator也有可能需要替换成windows当前用户名)
C:\Users\Administrator\AppData\Local\electron\Cache
再次执行npm run build命令即可
Comments | NOTHING