electron打包安装启动报Env ELECTRON_HMR_SOCKET_PATH is not set错误
今天在使用electron-builder
打包之后报下面这个错,有没有哪位大佬知道这是为什么啊?
package.json如下:
{
"name": "electron-demo",
"version": "1.0.0",
"description": "",
"main": "main.js",
"scripts": {
"start": "electron .",
"start:main": "electron-webpack dev",
"test": "echo \"Error: no test specified\" && exit 1",
"build": "electron-builder"
},
"author": "",
"license": "ISC",
"build": {
"productName": "xx系统",
"appId": "com.test.demo",
"copyright": "xxx版权所有",
"directories": {
"output": "build"
},
"win": {
"icon": "icon.ico"
}
},
"devDependencies": {
"electron": "^13.1.9",
"electron-builder": "^22.11.7",
"electron-webpack": "^2.8.2",
"oracledb": "^5.2.0",
"webpack": "4.41.5",
"webpack-cli": "^3.3.10",
"webpack-merge": "^4.2.2"
},
"dependencies": {
"react": "^17.0.2",
"react-dom": "^17.0.2",
"source-map-support": "^0.5.19"
}
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论