我在Chrome扩展下成功运行了这个github应用。但当我使用电子运行它时连接建立中的套接字连接错误:net :: ERR_CONNECTION_REFUSED
下面是package.json文件。 我试过" chromium-args":" - allow-running-insecure-content --ignore-certificate-errors",但没有帮助。 我需要在package.json中进行任何具体更改。只是想学习,如果有任何信息缺失,请告诉我?
{
"name": "electron-app",
"version": "1.0.0",
"description": "",
"main": "main.js",
"icons": {
"16": "icon.png",
"128": "icon.png"
},
"app": {
"background": {
"scripts": ["background.js"]
}
},
"sockets": {
"udp": { "bind": "*", "send": "*" }
},
"permissions": [
"system.network", "desktopCapture", "videoCapture", "mdns"
],
"dependencies": {
"pretty-bytes": "^2.0.1"
},
"devDependencies": {
"electron-prebuilt": "^0.35.2"
},
"scripts": {
"start": "electron main.js"
},
"author": "",
"license": "ISC"
}