1,在win7 中运行需要12.19.1,在打包过程序可能会遇到 使用electron-builder打包时下载electron失败解决方案 ,在下载之后将文件放入Linux: $XDG_CACHE_HOME or ~/.cache/electron/
MacOS: ~/Library/Caches/electron/
Windows: %LOCALAPPDATA%/electron/Cache or ~/AppData/Local/electron/Cache/这里面然后使用打包功能
2,在运行过程遇到fs/promises 无法找到可以通过将本地环境的node 及npm放到较稳定版本,然后再打包,其真实的运行环境中的node及npm环境可以通过设置环境变量,处理