关于quasar electron 打包问题

98 阅读1分钟

问题

执行quasar build -m electron命令在下面卡住
问题1  Downloading electron-v35.0.0-win32-x64.zip: [----------] 1% ETA: 3585.2 seconds
问题2  RequestError: connect ETIMEDOUT 140.82.114.4:443

解决方案

第一种: 科学上网

第二种:  
        1. 配置淘宝镜像
        2. 删除node_modules 
        3. npm i 
        4. 重新打包
       
       

无法ping 通github解决方案

1. 使用switchhosts(https://github.com/oldj/SwitchHosts/releases)
2. 导入github 配置文件
    

image.png

重点: 不要使用编辑器自带的终端,使用pwoershell来进行打包, 如果还是无法解决使用一下版本

NodeV18.12.0

yarn V1 版本,不要使用npm