You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can not specify the env.ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ (it is always npm.taobao.org), and keep getting such error when npm install electron:
ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ pnpm i
WARN 17 deprecated subdependencies found: @humanwhocodes/[email protected], @humanwhocodes/[email protected], @npmcli/[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
Packages: +1223
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 1223, reused 1223, downloaded 0, added 0, done
node_modules/.pnpm/[email protected]/node_modules/electron: Running postinstall script, failed in 1.5s
.../node_modules/electron postinstall$ node install.js
│ RequestError: Hostname/IP does not match certificate's altnames: Host: npm.taobao.org. is not…
│ at ClientRequest.<anonymous> (/Users/fritx/we-gui/electron_tray_app/node_modules/.pnpm/go…
│ at Object.onceWrapper (node:events:633:26)
│ at ClientRequest.emit (node:events:530:35)
│ at origin.emit (/Users/fritx/we-gui/electron_tray_app/node_modules/.pnpm/@szmarczak+http-…
│ at TLSSocket.socketErrorListener (node:_http_client:500:9)
│ at TLSSocket.emit (node:events:518:28)
│ at emitErrorNT (node:internal/streams/destroy:169:8)
│ at emitErrorCloseNT (node:internal/streams/destroy:128:3)
Hi, my friends!
I've found env vars such as ELECTRON_MIRROR seems to be no longer recognized. They're still documented in README:
https://github.com/electron/get/blob/main/README.md?plain=1#L102-L108
Code search:
https://github.com/search?q=repo%3Aelectron%2Fget%20mirror&type=code
I can not specify the
env.ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/
(it is alwaysnpm.taobao.org
), and keep getting such error whennpm install electron
:May be related to: electron/electron#32076, electron/electron#41089, cnpm/cnpmjs.org#1052
The text was updated successfully, but these errors were encountered: