electron-builder 打包错误 求助
electron-builder 打包报错
node 版本 v14.16.0
npm 版本 6.14.11
electron 版本 v12.0.2
electron和 electron-builder 全局安装的
系统 :window10
// ========
{
"name": "yckz",
"version": "1.0.0",
"description": "22222222",
"main": "app/main/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "concurrently \"npm run start:render\" \"wait-on http://localhost:3000 && npm run start:electron\" ",
"start:electron": "electron .",
"start:render": "cd app/renderer/src/myapp && npm start",
"build": "cd app/renderer/src/myapp && npm run build",
"pack:win": "npm run build && electron-builder --win --ia32"
},
"keywords": [],
"author": "xxx",
"license": "ISC",
"dependencies": {
"electron-is-dev": "^2.0.0"
},
"devDependencies": {
"concurrently": "^6.0.0",
"cross-env": "^7.0.3",
"electron-builder": "^22.3.2",
"wait-on": "^5.3.0"
},
"build": {
"productName":"yckz",
"appId": "yckz",
"copyright":"yckz",
"compression": "store",
"directories": {
"output": "build"
},
"asar": false,
"win": {
"icon": "./resources/icon.ico"
},
"nsis": {
"oneClick": false,
"guid": "xxxx",
"perMachine": true,
"allowElevation": true,
"allowToChangeInstallationDirectory": true,
"installerIcon": "./resources/icon.ico",
"uninstallerIcon": "./resources/icon.ico",
"installerHeaderIcon": "./resources/icon.ico",
"createDesktopShortcut": true,
"createStartMenuShortcut": true,
"shortcutName": "xxxx"
}
}
}
electron-builder 打包有什么详细的中文教程吗?和要注意的地方
electron-builder 打包配置最小配置项是哪些呢?
上面错误提示
Cannot compute electron version from installed node modules - none of the possible electron modules are installed.
See https://github.com/electron-u...
不知道是不是 windows_build_tools 的问题
我也找不到答案
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论