problem description
ECONNREFUSED connect ECONNREFUSED 127.0.0.1 ECONNREFUSED connect ECONNREFUSED 443 error occurred when npm installed electron
the platform version of the problem and what methods you have tried
related codes
/ / results of npm config list
; cli configs
metrics-registry = "https://registry.npmjs.org/"
scope = ""
user-agent = "npm/6.4.1 node/v11.4.0 win32 x64"
; node bin location = C:\Program Files\nodejs\node.exe
; cwd = C:\Users\pb_jimmy
; HOME = C:\Users\pb_jimmy
; "npm config ls -l" to show all defaults.
/ / Please paste the code text below (do not replace the code with pictures)
$npm install-g electron
/ usr/local/bin/electron-> / usr/local/lib/node_modules/electron/cli.js
> electron@3.0.10 postinstall /usr/local/lib/node_modules/electron
> node install.js
Downloading tmp-6967-0-electron-v3.0.10-darwin-x64.zip
Error: connect ECONNREFUSED 127.0.0.1:443
/usr/local/lib/node_modules/electron/install.js:49
throw err
^
Error: connect ECONNREFUSED 127.0.0.1:443
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1113:14)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! electron@3.0.10 postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the electron@3.0.10 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: