electron專案npm i 報錯certificate has expired

Lecone.JY.HU發表於2024-03-14

npm i 報錯certificate has expired 或者 npm Client network socket disconnected before secure TLS connection was esta

可以在vs code 專案的目錄下建立 一個名字為.npmrc的檔案,檔案內容如下

registry=http://registry.npm.taobao.org
ELECTRON_MIRROR=http://npm.taobao.org/mirrors/electron/
ELECTRON_BUILDER_BINARIES_MIRROR=http://npm.taobao.org/mirrors/electron-builder-binaries/
https://npm.taobao.org/mirrors/electron/ 目前無法訪問造成

相關文章