Add “node-remote” : “<all_urls>” in your package.json

就像这样,就可以了

{
  "name": "nwjs-sdk-v0.39.0-win-x64",
  "main": "index.html",
  "node-remote": "<all_urls>",
  "nodejs": true,
  "version": "1.0.0",
  "description": "",
  "dependencies": {},
  "devDependencies": {},
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC"
}