我在chrome扩展程序下,成功运行了这个Github 应用。但是当我在electron中运行时,出现了套接字连接错误: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"
}