问题一:electron-builder搭建项目运行起来没问题,打包的时候报错 Unresolved node modules: vue 解决方法: 把node_modules文件夹删除掉,使用npm install安装所有的模块,千万不要使用淘宝镜像安装!!! 或者使用 yarn安装模块,就可以避免这个错误 问题二;Electron-Vue打包成exe一片空白 解决方法: webpack.renderer.config.j...
module.exports={publicPath:process.env.NODE_ENV==='production'?'./':'/',pluginOptions:{electronBuilder:{nodeIntegration:true,//Because these two modules contain native C code, they should be retrieved at runtime, rather than being packaged into bundles by webpacksexternals:['ffi-napi','ref...
使用electron-builder创建可执行文件,生成后运行程序报错: Uncaught Error: Cannot find module 'debug' at Module._resolveFilename (module.js:485:15) at Function.Module._resolveFilename (C:\Users\ADMINI~1\AppData\Local\Temp\nsq843B.tmp\app\resources\electron.asar\common\reset-search-paths.js:35:1...
at Socket.end (node:net:631:31) at /home/electron-test/node_modules/builder-util/src/util.ts:205:25 at new Promise (<anonymous>) at Object.spawnAndWrite (/home/electron-test/node_modules/builder-util/src/util.ts:184:10) at NsisTarget.executeMakensis (/home/electron-test/node_modules/...
Version: "electron": "^11.1.1" "electron-builder": "^22.9.1" "electron-updater": "^4.3.5" When I run the development mode, electron-updater is imported well. But for some reason, after the build module was not found. A JavaScript error o...
// vue.config.jsmodule.exports={pluginOptions:{electronBuilder:{// List native deps here if they don't workexternals:['my-native-dep'],// If you are using Yarn Workspaces, you may have multiple node_modules folders// List them all here so that VCP Electron Builder can find themnodeMod...
大意就是告诉开发者,如果发现打包后某些模块不工作,需要你在electronBuilder中配置一下! 参考资料 1、Vue CLI Plugin Electron Builder
解决⽅法:锁定正常运⾏的版本即可,package.json中 "electron-updater": "^4.3.5" 改为 "electron-updater": "4.3.5" ;总结:项⽬稳定后锁定版本号,防⽌出现类似的问题 下⾯是⽹上的⼀些解决⽅法:1:这是nodejs版本太低导致的,查看electron-builder的代码可以发现,⾥⾯都是require(...
但是怪异的是本地编译运行是没问题的,但是一旦打包成asar运行就会出现问题,通过崩溃信息可以知道问题出在xml2js这个库,解压生成的asar文件,发现node_modules/xml2js/lib/目录下面并没有builder.js这个文件,本地编译的node_modules中明明是有的,将本地的builder.js文件拷贝到asar解压后的目录中,再次运行,发现可以正常...
"dist-linux": "electron-builder --linux" 如果遇到 Cannot find module 'builder-util' 这个问题 可能是 builder-util 缺失或者版本太低 可以通过 检查命令:npm ls builder-util 来进行检查是否安装 可以通过 安装命令:npm install builder-util 来进行安装新版的 ...