To those who are struggling building plugin with RequestError: read ECONNRESET on Windows trying to build this plugin behind a proxy.
PS openlens-node-pod-menu> npm ci
(node:14488) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
(Use `node --trace-warnings ...` to show where the warning was created)
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated @material-ui/styles@4.11.5: Material UI v4 doesn't receive active development since September 2021. See the guide https://mui.com/material-ui/migration/migration-v4/ to upgrade to v5.
npm WARN deprecated @material-ui/lab@4.0.0-alpha.61: Material UI v4 doesn't receive active development since September 2021. See the guide https://mui.com/material-ui/migration/migration-v4/ to upgrade to v5.
npm WARN deprecated @material-ui/core@4.12.4: Material UI v4 doesn't receive active development since September 2021. See the guide https://mui.com/material-ui/migration/migration-v4/ to upgrade to v5.
npm ERR! code 1
npm ERR! path openlens-node-pod-menu\node_modules\electron
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node install.js
npm ERR! (node:39484) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
npm ERR! (Use `node --trace-warnings ...` to show where the warning was created)
npm ERR! RequestError: read ECONNRESET
npm ERR! at ClientRequest.<anonymous> (openlens-node-pod-menu\node_modules\got\dist\source\core\index.js:970:111)
npm ERR! at Object.onceWrapper (node:events:646:26)
npm ERR! at ClientRequest.emit (node:events:538:35)
npm ERR! at ClientRequest.origin.emit (openlens-node-pod-menu\node_modules\@szmarczak\http-timer\dist\source\index.js:43:20)
npm ERR! at TLSSocket.socketErrorListener (node:_http_client:442:9)
npm ERR! at TLSSocket.emit (node:events:526:28)
npm ERR! at emitErrorNT (node:internal/streams/destroy:157:8)
npm ERR! at emitErrorCloseNT (node:internal/streams/destroy:122:3)
npm ERR! at processTicksAndRejections (node:internal/process/task_queues:83:21)
npm ERR! at TLSWrap.onStreamRead (node:internal/stream_base_commons:217:20)
From powershell:
$env:ELECTRON_GET_USE_PROXY=1
$env:GLOBAL_AGENT_HTTP_PROXY="proxy url here"
$env:GLOBAL_AGENT_HTTPS_PROXY="proxy url here"
To those who are struggling building plugin with RequestError: read ECONNRESET on Windows trying to build this plugin behind a proxy.
From powershell: $env:ELECTRON_GET_USE_PROXY=1 $env:GLOBAL_AGENT_HTTP_PROXY="proxy url here" $env:GLOBAL_AGENT_HTTPS_PROXY="proxy url here"
ex.
Originally taken from: https://forum.snapcraft.io/t/electron-7-and-above-fails-to-install-with-getaddrinfo-enotfound-github-com-on-launchpad-build-snapcraft-io/20432/2
.npmrc Add SDK for Win10 in VS installer, Win 11 SDK is not supported in this version